/**
 * Authentication pages styling
 * Login, Register, and Verify Email pages
 */

/* Auth Container */
.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    padding-top: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-top: 100px;
    margin-bottom: 40px;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #04878e; /* Teal/green for titles */
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.oauth-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
}

.oauth-btn:active {
    transform: translateY(0);
}

.oauth-btn svg {
    flex-shrink: 0;
}

.oauth-google:hover {
    border-color: #4285F4;
}

.oauth-facebook:hover {
    border-color: #1877F2;
}

.oauth-apple:hover {
    border-color: #333333;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 16px;
    color: #666666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="date"] {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="date"]:focus {
    outline: none;
    border-color: #04878e;
    background: #ffffff;
}

.auth-form input::placeholder {
    color: #999999;
}

.auth-form input[type="date"] {
    color-scheme: light;
}

.auth-form input.verified {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.auth-form input:read-only {
    cursor: not-allowed;
    opacity: 0.8;
    background: #f5f5f5;
}

/* Checkbox Group */
.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #04878e;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    color: #333333;
}

.checkbox-group a {
    color: #04878e;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.checkbox-group a:hover {
    color: #06a5ad;
}

/* Submit Button */
.auth-form .btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
}

.auth-form .btn-primary {
    background: #151f38; /* Navy blue */
    color: #d6ca96; /* Mustard/gold */
}

.auth-form .btn-primary:hover {
    background: #1e2d4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 31, 56, 0.3);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

.auth-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Success Message */
.auth-success {
    text-align: center;
    padding: 20px 0;
}

.auth-success svg {
    margin-bottom: 20px;
}

.auth-success h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #04878e;
}

.auth-success p {
    color: #333333;
    line-height: 1.6;
}

/* Auth Error Message */
.auth-error {
    padding: 14px 16px;
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Auth Links */
.auth-register-link,
.auth-login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666666;
}

.auth-register-link a,
.auth-login-link a {
    color: #04878e;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.auth-register-link a:hover,
.auth-login-link a:hover {
    text-decoration: underline;
}

/* Auth State (for verify-email page) */
.auth-state {
    text-align: center;
    padding: 40px 20px;
}

.auth-state svg {
    margin-bottom: 24px;
}

.auth-state h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #04878e;
}

.auth-state p {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auth-state .btn {
    display: inline-block;
    padding: 14px 32px;
    background: #151f38;
    color: #d6ca96;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-state .btn:hover {
    background: #1e2d4d;
    transform: translateY(-1px);
}

/* Loading Spinner */
.auth-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #04878e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Account Page Styles */
.account-container {
    max-width: 500px;
}

.account-section {
    margin-bottom: 32px;
}

.account-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #04878e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.account-field {
    margin-bottom: 16px;
}

.account-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-value {
    font-size: 16px;
    color: #333333;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Danger Zone */
.account-danger-zone {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #ff6b6b;
}

.account-danger-zone h2 {
    color: #ff6b6b;
    border-bottom-color: rgba(255, 107, 107, 0.3);
}

.danger-warning {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-danger {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    background: transparent;
    color: #ff6b6b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.1);
}

.btn-danger-confirm {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #ff6b6b;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    animation: pulse-danger 1s ease-in-out infinite;
}

.btn-danger-confirm:hover {
    background: #ff5252;
}

.btn-danger-confirm:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: none;
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

/* Responsive Styles */
@media (max-width: 480px) {
    .auth-container {
        margin: 20px 16px;
        padding: 30px 24px;
        padding-top: 40px;
        margin-top: 100px;
    }

    .auth-container h1 {
        font-size: 24px;
    }

    .oauth-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="date"] {
        padding: 12px 14px;
        font-size: 14px;
    }

    .auth-form .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
