:root {
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
    --bg-color: #ffffff;
    --primary-color: #4a90e2;
    --primary-color-dark: #357abd;
    --error-color: #ff4444;
}

.user-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-container {
    z-index: 100;
}

/* Remove login-container and login-dropdown styles from here as they're in navbar.css */

.login-button {
    padding: 12px 20px;
    display: flex;
    background: #007bff;
    color: white;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
    font-size: 18px; /* Larger font */
    font-weight: 600;
    overflow-wrap: break-word;
}

.login-button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Remove login-dropdown styles from here since they're in navbar.css */

.login-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333333;
    transition: background-color 0.2s;
    font-size: 14px;
}

.login-option:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.login-option img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.login-option i {
    width: 20px;
    margin-right: 12px;
    color: #666666;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.login-option.google {
    background: #fff;
    color: #333;
    border: 2px solid #4a90e2;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s ease;
}

.login-option.google:hover {
    background: #e3f0ff;
    color: #357abd;
    border-color: #357abd;
}

.avatar-container {
    position: relative;
}

.user-avatar {
    width: 48px; /* Bigger avatar */
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.logout-btn {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    padding: 8px 16px;
    display: block;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #dc3545;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.logout-btn:hover {
    background: #b71222;
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin: -25px -25px 20px -25px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden; /* Ensure tab corners don't show */
}

@media (max-width: 600px) {
    .auth-tabs {
        margin: -20px -20px 15px -20px;
        border-radius: 16px 16px 0 0;
        background-color: #f8f9fa;
        overflow: hidden;
    }
}

/* Small-medium mobile - intermediate sizing for auth tabs */
@media (max-width: 480px) {
    .auth-tabs {
        margin: -18px -18px 12px -18px;
        border-radius: 14px 14px 0 0;
    }
}

.tab-button {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    color: #666666;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

.tab-button.active {
    color: #4a90e2;
    border-bottom: 2px solid #4a90e2;
    background-color: #ffffff;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.15), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.tab-button:hover::before {
    left: 100%;
}

/* Ensure tab button text stays above the shine effect */
.tab-button > * {
    position: relative;
    z-index: 2;
}

/* Forms */
.auth-form {
    display: block;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .auth-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
    }
}

/* Small-medium mobile - intermediate sizing for auth form */
@media (max-width: 480px) {
    .auth-form {
        padding: 0;
        margin-top: 16px;
    }
}

/* Extra small mobile - covers 350-450px range */
@media (max-width: 400px) {
    .auth-tabs {
        margin: -16px -16px 10px -16px;
        border-radius: 12px 12px 0 0;
    }
    
    .auth-form {
        margin-top: 14px;
    }
    
    .tab-button {
        padding: 12px;
        font-size: 14px;
    }
}

.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 12px; /* Adjusted padding */
    font-size: 15px; /* Matched from .form-group input */
    border-radius: 8px; /* Matched from .form-group input */
    border: 1px solid var(--border-color); /* Matched from .form-group input */
    background: var(--input-bg); /* Matched from .form-group input */
    box-sizing: border-box;
    transition: border-color 0.2s;
    /* Removed explicit height to allow padding/font-size to determine it */
}

.password-input-wrapper input[type="password"]:focus,
.password-input-wrapper input[type="text"]:focus {
    border-color: #4a90e2;
    outline: none;
}

.toggle-password-visibility {
    position: absolute;
    right: -7px;
    top: 12px; /* Adjusted by 1px for better centering */
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.toggle-password-visibility i {
    font-size: 16px; /* Slightly smaller for better proportions */
    line-height: 1;
}

.toggle-password-visibility:hover {
    color: #4a90e2;
}

.toggle-password-visibility:focus {
    outline: none;
    color: #007bff;
}

.forgot-password-hint {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.forgot-password-hint a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-hint a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Password reset specific styles */
.modal h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.modal p {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.action-button {
    padding: 12px 28px;
    background: #007bff;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 600;
}

.action-button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-form button[type="submit"] {
    background: #007bff;
    color: white;
    width: 100%;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s ease;
}

.auth-form button[type="submit"]:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.auth-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-requirements,
.helper-text {
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 4px;
    font-style: italic;
}

/* Policy agreement styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    color: var(--text-color);
}

.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: var(--primary-color-dark);
}

.google-agreement-notice {
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
    max-width: 350px;
}

.google-agreement-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.google-agreement-notice a:hover {
    color: var(--primary-color-dark);
}

.anonymous-agreement-notice {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.anonymous-agreement-notice a {
    color: var(--primary-color);
    text-decoration: underline;
}

.anonymous-agreement-notice a:hover {
    color: var(--primary-color-dark);
}

/* Submit button disabled state */
#signup-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#signup-submit-btn:disabled:hover {
    transform: none;
    background-color: #ccc;
}