/* Two-Column Auth Layout */
.auth-page {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Left Column - Benefits */
.auth-benefits {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.auth-benefits h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
}

.auth-benefits p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.auth-social-proof {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.9;
}

.auth-social-proof strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Security features (password reset page) */
.security-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    opacity: 0.9;
}

.security-features li:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

/* Right Column - Form */
.auth-form-section {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.auth-form-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.auth-form-header p a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.auth-form-header p a:hover {
    text-decoration: underline;
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    color: #3c4043;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.google-btn:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 12px;
}

/* Form Fields */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Input validation states */
.form-group input.input-error {
    border-color: #dc2626;
}

.form-group input.input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.input-valid {
    border-color: #16a34a;
}

.form-group input.input-valid:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Password Help Text (signup) */
.password-help {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    line-height: 1.5;
}

/* Inline Validation Messages */
.field-error {
    display: none;
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    align-items: center;
    gap: 4px;
}

.field-error.visible {
    display: flex;
}

.field-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.field-success {
    display: none;
    font-size: 12px;
    color: #16a34a;
    margin-top: 6px;
    align-items: center;
    gap: 4px;
}

.field-success.visible {
    display: flex;
}

.field-success svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Checkbox (signup) */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.checkbox-group label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

/* Forgot Password Link (login) */
.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 20px;
}

.forgot-password a {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.auth-submit:disabled {
    background: #c4b5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Back to login link (password reset) */
.back-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.back-link a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Error Messages */
.auth-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #dc2626;
    font-size: 14px;
}

.auth-errors ul {
    margin: 0;
    padding: 0 0 0 18px;
}

.auth-errors li {
    margin-bottom: 4px;
}

.auth-errors li:last-child {
    margin-bottom: 0;
}

/* Centered single-column card (reset done / success pages) */
.auth-card-page {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.auth-card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.auth-card-icon svg {
    width: 36px;
    height: 36px;
    stroke: #7c3aed;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.auth-card > p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.auth-card-note {
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7c3aed;
    margin-bottom: 28px;
    text-align: left;
}

.auth-card .auth-submit {
    display: block;
    text-align: center;
    text-decoration: none;
}

.auth-card .back-link {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .auth-benefits {
        padding: 32px 24px;
        order: 2;
    }

    .auth-benefits h1 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .auth-form-section {
        padding: 32px 24px;
        order: 1;
    }
}
