﻿/* Auth Layout - Clean minimal design */

:root {
    --primary-color: #2563eb;
    --primary-color-hover: #1d4ed8;
    --secondary-color: #2E515F;
    --secondary-color-light: #407286;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary-color);
}

.auth-logo i {
    font-size: 40px;
}

/* Typography */

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px 0;
}

/* Form styling - underline style inputs */

.auth-form-group {
    margin-bottom: 24px;
    position: relative;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background-color: transparent;
    font-size: 15px;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
    outline: none;
}

.auth-form-group input[type="text"]:focus,
.auth-form-group input[type="email"]:focus,
.auth-form-group input[type="password"]:focus {
    border-bottom-color: var(--primary-color);
}

.auth-form-group input::placeholder {
    color: #9ca3af;
}

/* Password visibility toggle */
.auth-form-group .password-toggle {
    position: absolute;
    right: 0;
    bottom: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
}

.auth-form-group .password-toggle:hover {
    color: #6b7280;
}

/* Checkbox styling */
.auth-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.auth-checkbox label {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
}

/* Primary button */
.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn-primary:hover {
    background-color: var(--primary-color-hover);
    color: #fff;
    text-decoration: none;
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

/* Secondary/outline button */
.auth-btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 12px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Links */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: var(--primary-color-hover);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-links a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links a:last-child {
    margin-bottom: 0;
}

/* Forgot password link inside form */
.auth-forgot-link {
    display: block;
    text-align: right;
    margin-bottom: 24px;
}

.auth-forgot-link a {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
}

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

/* Footer text and links */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer-text {
    font-size: 14px;
    color: #6b7280;
}

.auth-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

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

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

.auth-divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 13px;
}

/* Verification code input boxes */
.auth-code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.auth-code-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    background: transparent;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
}

.auth-code-inputs input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Single code input field (fallback) */
.auth-code-single {
    margin-bottom: 24px;
}

.auth-code-single input {
    width: 100%;
    padding: 14px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 8px;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    background: transparent;
    color: #1a1a1a;
    transition: border-color 0.2s ease;
}

.auth-code-single input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Alert messages */
.auth-alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.auth-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Validation errors */
.auth-validation-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
}

.field-validation-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.validation-summary-errors {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Info text */
.auth-info-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Success message card */
.auth-success-card {
    text-align: center;
}

.auth-success-icon {
    width: 64px;
    height: 64px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-success-icon svg {
    width: 32px;
    height: 32px;
    color: #22c55e;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-code-inputs input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }
}
