body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: linear-gradient(to right bottom, #e6f7ff, #f0f8ff);
}

/* Replace the existing .auth-container with this */
.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Update the container class */
.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    max-width: 180px;
    height: auto;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #b8cf2d;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-with-icon input {
    padding-left: 35px !important;
}

.password-toggle {
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.password-toggle i {
    margin-right: 6px;
    color: #888;
}

.password-toggle:hover {
    color: #b8cf2d;
}

.password-toggle:hover i {
    color: #b8cf2d;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #b8cf2d;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 6px;
}

.forgot-password {
    color: #b8cf2d;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.terms-policy {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

.terms-policy input {
    margin-right: 8px;
    margin-top: 3px;
}

.terms-policy a {
    color: #b8cf2d;
    text-decoration: none;
}

.terms-policy a:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    padding: 0.9rem;
    background-color: #b8cf2d;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.25);
}

button:hover {
    background-color: #b8cf2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.toggle-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.toggle-link a {
    color: #b8cf2d;
    text-decoration: none;
    font-weight: 600;
}

.toggle-link a:hover {
    text-decoration: underline;
}

/* Dark Mode */
body.dark {
    background-color: #1e1e1e;
    color: #ccc;
    background-image: linear-gradient(to right bottom, #1a1a2e, #16213e);
}

body.dark .container {
    background-color: #2c2c2c;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark h2 {
    color: #b8cf2d;
}

body.dark label {
    color: #aaa;
}

body.dark input,
body.dark button {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

body.dark .input-with-icon i {
    color: #aaa;
}

body.dark .password-toggle {
    color: #999;
}

body.dark .password-toggle i {
    color: #aaa;
}

body.dark .password-toggle:hover,
body.dark .password-toggle:hover i {
    color: #b8cf2d;
}

body.dark input:focus {
    border-color: #b8cf2d;
    box-shadow: 0 0 0 2px rgba(77, 159, 255, 0.25);
}

body.dark button {
    background-color: #b8cf2d;
    box-shadow: 0 4px 6px rgba(0, 105, 217, 0.4);
}

body.dark button:hover {
    background-color: #b8cf2d;
    box-shadow: 0 6px 12px rgba(0, 105, 217, 0.5);
}

body.dark .toggle-link a,
body.dark .forgot-password,
body.dark .terms-policy a {
    color: #b8cf2d;
}

/* Update the media query section */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }
    
    .auth-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}

/* Translate */

.language-options-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

body.dark .language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.forgot-password-container {
    text-align: right;
    margin-top: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

/* Add these styles to your auth.css file */

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    font-weight: normal;
    margin-bottom: 0;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #b8cf2d;
    text-decoration: none;
    /* margin-left: 4px; */
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Dark mode styles for checkboxes */
body.dark .checkbox-label {
    color: #aaa;
}

body.dark .checkbox-label a {
    color: #b8cf2d;
}

/* Register page checkbox section */
.checkbox-label {
    display: flex;
    align-items: flex-start; /* Aligns checkbox and text block at top */
    gap: 8px; /* Space between checkbox and text */
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px; /* Minor tweak to center checkbox better */
}

.checkbox-text {
    display: inline;
}

.inline-link {
    color: #88B04B; /* Your theme color */
    text-decoration: none;
    white-space: nowrap;
}

.inline-link:hover {
    text-decoration: underline;
}

/* Custom Alert Styles */
.alert-container {
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

.alert-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-text {
    flex: 1;
    line-height: 1.4;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
    background: none;
    transform: none;
    box-shadow: none;
}

/* Dark mode styles for alerts */
body.dark .alert-error {
    background-color: #4a1f1f;
    border-color: #6b2c2c;
    color: #ff6b6b;
}

body.dark .alert-success {
    background-color: #1f4a1f;
    border-color: #2c6b2c;
    color: #6bff6b;
}

body.dark .alert-warning {
    background-color: #4a3f1f;
    border-color: #6b5b2c;
    color: #ffeb3b;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .alert-message {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .alert-icon {
        margin-right: 8px;
        font-size: 1rem;
    }
}