/* ========================================
   Authentication Pages Styles
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Brand Header */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Auth Card */
.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
}

.auth-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon svg:first-child {
    position: absolute;
    left: 16px;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: 12px 48px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.3s;
    background: var(--white);
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

/* NEW: Checkbox-style password toggle (Gmail style) */
.password-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    user-select: none;
}

.password-toggle-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.password-toggle-wrapper label {
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 16px;
    color: var(--gray);
    font-size: 14px;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover {
    border-color: var(--primary);
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-facebook:hover {
    border-color: #1877F2;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: var(--primary-dark);
}

/* Footer Links */
.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 13px;
}

.auth-footer a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--dark);
}

.auth-footer span {
    color: var(--gray);
}

/* Messages */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.error-message {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-brand h1 {
        font-size: 20px;
    }
    
    .auth-card h2 {
        font-size: 24px;
    }
}