@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset for auth pages ────────────────────── */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

/* ── Auth Shell ──────────────────────────────── */
.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Brand Panel (left) ──────────────────────── */
.auth-brand-panel {
    flex: 0 0 42%;
    background: linear-gradient(145deg, #0c7a8a 0%, #0ea5c0 40%, #3bbfbf 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 56px;
    position: relative;
    overflow: hidden;
}

/* decorative circles */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    top: -160px;
    right: -160px;
    pointer-events: none;
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: min(100%, 320px);
    max-height: 96px;
    height: auto;
    margin-bottom: 56px;
    object-fit: contain;
}

.brand-headline {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 320px;
}

.brand-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 48px;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.brand-features li .check-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;
    color: #ffffff;
}

/* ── Form Panel (right) ──────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #ffffff;
    position: relative;
}

.auth-form-panel .back-link {
    position: absolute;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form-panel .back-link:hover {
    color: #0ea5c0;
}

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

/* ── Form Header ──────────────────────────────── */
.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-form-header p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ── Form Fields ─────────────────────────────── */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.auth-field .input-wrap {
    position: relative;
}

.auth-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: none;
}

.auth-field input:focus {
    border-color: #0ea5c0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 192, 0.1);
    color: #0f172a;
}

.auth-field input.is-invalid {
    border-color: #ef4444;
    background: #fff5f5;
}

.auth-field input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 5px;
    display: block;
}

/* password toggle */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #0ea5c0;
}

.auth-field input[type="password"],
.auth-field input[type="text"] {
    padding-right: 42px;
}

/* ── Row helpers ─────────────────────────────── */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-forgot {
    font-size: 0.82rem;
    color: #0ea5c0;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.auth-forgot:hover {
    opacity: 0.8;
    color: #0ea5c0;
}

/* ── Submit Button ────────────────────────────── */
.auth-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0ea5c0, #3bbfbf);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.auth-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 192, 0.35);
}

.auth-submit:active {
    transform: translateY(0);
    opacity: 1;
}

/* ── Divider ─────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #d1d5db;
    font-size: 0.8rem;
}

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

/* ── Register Link ───────────────────────────── */
.auth-register-row {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-register-row a {
    color: #0ea5c0;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-register-row a:hover {
    opacity: 0.8;
}

/* ── Language Selector ───────────────────────── */
.auth-language {
    margin-top: 32px;
    text-align: center;
}

.auth-language label {
    font-size: 0.78rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-language select {
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 28px 6px 10px;
    background: #f9fafb;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.auth-language select:focus {
    border-color: #0ea5c0;
}

/* ── Footer copy ─────────────────────────────── */
.auth-copy {
    margin-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ── reCAPTCHA ───────────────────────────────── */
.auth-field .g-recaptcha {
    transform-origin: left top;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 40px 24px;
    }

    .auth-form-panel .back-link {
        left: 20px;
    }
}
