/*
 * ITYESH Auth Pages — Brand-aligned theme (navy / blue)
 */

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

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f4fb;
}

/* ─── Auth card ─────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow:
        0 1px 3px rgba(15,23,42,.06),
        0 8px 32px rgba(15,23,42,.09),
        0 24px 64px rgba(15,23,42,.04);
    padding: 36px 32px 32px;
}

/* ─── Header (logo + headings) ──────────── */
.auth-header {
    text-align: center;
    margin-bottom: 4px;
}

.auth-logo-wrap { margin-bottom: 16px; }

.auth-logo {
    height: 52px;
    width: auto;
    display: inline-block;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #dbeafe;
    box-shadow: 0 0 0 5px rgba(29,78,216,0.08);
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: .875rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ─── Section separator ─────────────────── */
.auth-sep {
    border: none;
    border-top: 1px solid #e8edf3;
    margin: 22px 0 20px;
}

/* ─── Form labels ───────────────────────── */
.auth-card .form-label {
    font-size: .82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: .01em;
}

/* ─── Inputs ────────────────────────────── */
.auth-card .form-control {
    background: #f8fafc;
    border: 1.5px solid #dde3ec;
    border-radius: 10px !important;
    padding: .72rem 1rem;
    color: #0f172a;
    font-size: .9rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.auth-card .form-control::placeholder { color: #a8b4c2; }

.auth-card .form-control:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(29,78,216,.14);
    color: #0f172a;
    outline: none;
}

/* ─── Input group (icon prefix) ─────────── */
.auth-card .input-group-text {
    background: #f1f5f9;
    border: 1.5px solid #dde3ec;
    border-radius: 10px 0 0 10px !important;
    color: #1d4ed8;
    font-size: .95rem;
    padding: .72rem .85rem;
    transition: border-color .15s;
}

.auth-card .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
}

.auth-card .input-group:focus-within .input-group-text {
    border-color: #2563eb;
}

/* Password toggle button */
.auth-card .input-group .btn-outline-secondary {
    background: #f1f5f9;
    border: 1.5px solid #dde3ec;
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
    color: #94a3b8;
    transition: color .15s, background .15s, border-color .15s;
}

.auth-card .input-group .btn-outline-secondary:hover {
    background: #e8eef5;
    color: #1d4ed8;
}

.auth-card .input-group:focus-within .btn-outline-secondary {
    border-color: #2563eb;
}

.auth-card .input-group .form-control:not(:last-child) {
    border-radius: 0 !important;
}

/* ─── Primary button ────────────────────── */
.auth-card .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: .72rem 1rem !important;
    font-weight: 700 !important;
    font-size: .875rem;
    letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(29,78,216,.28) !important;
    transition: all .18s ease !important;
    color: #fff !important;
}

.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 6px 22px rgba(29,78,216,.40) !important;
    transform: translateY(-1px) !important;
}

.auth-card .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(29,78,216,.28) !important;
}

/* ─── Links ─────────────────────────────── */
.link-brand {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

.link-brand:hover {
    color: #1e40af;
    text-decoration: underline;
}

.link-light2 {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}

.link-light2:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ─── Divider ───────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: .75rem;
}

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

/* ─── Validation ────────────────────────── */
.text-danger {
    color: #dc2626 !important;
    font-size: .78rem;
}

/* ─── Checkbox ──────────────────────────── */
.auth-card .form-check-input {
    background-color: #fff;
    border-color: #d1d5db;
    cursor: pointer;
}

.auth-card .form-check-input:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.auth-card .form-check-label {
    color: #64748b;
    font-size: .82rem;
    cursor: pointer;
}

/* ─── Auth footer ───────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .8rem;
    color: #94a3b8;
}

/* ─── ForgotPassword utility classes ────── */
.brand-badge {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border: 1.5px solid #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    flex-shrink: 0;
}

.soft-white {
    color: #0f172a;
    font-weight: 700;
}

.muted-white {
    color: #64748b;
}

.small-note {
    font-size: .82rem;
    color: #64748b;
}

/* ─── Responsive ────────────────────────── */
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px 24px; }
}
