/* signin.css — Shared auth shell styles (apt-rental-mgmt)
   Source: mockup apt-rental-mgmt design-system tokens
   Covers: signin, signup, forget-password, reset-password, verify-email, 2fa-auth */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #F9FAFB;
    color: #111827;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

a {
    color: #111827;
    text-decoration: underline;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */

.auth-shell {
    width: min(560px, calc(100% - 32px));
    margin: 32px auto;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    padding: 24px;
}

.auth-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.auth-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.auth-header p {
    margin: 0;
    color: #4B5563;
    line-height: 1.5;
    font-size: 14px;
}

.auth-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 14px;
}

/* ── Language Switcher ─────────────────────────────────────────────────── */

.auth-language-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.auth-language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.auth-language-link.is-active {
    background: #111827;
    border-color: #111827;
    color: #FFFFFF;
}

/* ── Card / Content ────────────────────────────────────────────────────── */

.auth-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: #6B7280;
}

.auth-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.auth-card > p {
    margin: 0 0 20px;
    color: #4B5563;
    line-height: 1.5;
    font-size: 14px;
}

/* ── Alerts ────────────────────────────────────────────────────────────── */

.auth-alert {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #D1D5DB;
    line-height: 1.5;
    font-size: 14px;
}

.auth-alert.error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}

.auth-alert.success {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #166534;
}

.auth-alert.warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

/* ── Form ──────────────────────────────────────────────────────────────── */

.auth-form,
.auth-row {
    display: grid;
    gap: 14px;
}

.auth-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.auth-field input,
.auth-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: #111827;
    font-size: 14px;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ── Actions ───────────────────────────────────────────────────────────── */

.auth-inline,
.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.auth-inline {
    justify-content: space-between;
    font-size: 14px;
}

.auth-button,
.auth-button-secondary {
    border: 1px solid #111827;
    background: #111827;
    color: #FFFFFF;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.auth-button:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

.auth-button-secondary {
    background: #FFFFFF;
    color: #111827;
}

.auth-button-secondary:hover {
    background: #F3F4F6;
}

.auth-button-primary {
    background: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
}

.auth-button-primary:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

/* ── Divider / Meta ────────────────────────────────────────────────────── */

.auth-divider {
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid #E5E7EB;
    font-size: 12px;
    text-transform: uppercase;
    color: #6B7280;
}

.auth-meta {
    margin-top: 18px;
    font-size: 14px;
    color: #6B7280;
    text-align: center;
}

.auth-meta a {
    color: #6B7280;
}

/* ── 2FA Code Input ────────────────────────────────────────────────────── */

.auth-field input.code-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .auth-shell {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 16px;
    }

    .auth-row {
        grid-template-columns: 1fr;
    }

    .auth-inline,
    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
