/* Auth layout — aligned with Nthaka public theme */
:root {
    --auth-primary: #129e80;
    --auth-primary-dark: #0f866d;
    --auth-primary-deep: #0a5647;
    --auth-ink: #212529;
    --auth-muted: #6c757d;
    --auth-surface: #ffffff;
    --auth-border: rgba(18, 158, 128, 0.14);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.auth-layout {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(160deg, #f8f9fa 0%, #eef7f4 45%, #e8f3ef 100%);
    color: var(--auth-ink);
    font-family: 'Inter', sans-serif;
}

.auth-bg-shape {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-shape--one {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(18, 158, 128, 0.08);
}

.auth-bg-shape--two {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -80px;
    background: rgba(18, 158, 128, 0.06);
}

.auth-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-shell {
    width: 100%;
    max-width: 480px;
}

.auth-shell--wide {
    max-width: 860px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: var(--auth-primary-deep);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: var(--auth-primary);
}

.auth-card {
    border: 1px solid var(--auth-border);
    border-radius: 1.25rem;
    background: var(--auth-surface);
    box-shadow: 0 20px 50px rgba(18, 158, 128, 0.1);
    overflow: hidden;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 158, 128, 0.12);
    padding: 0.65rem;
}

.auth-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--auth-ink);
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--auth-muted);
    margin-bottom: 0;
    max-width: 28rem;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(18, 158, 128, 0.12);
    color: var(--auth-primary-deep);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(18, 158, 128, 0.2);
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--auth-ink);
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    padding: 0.65rem 0.85rem;
    background-color: #f8f9fa;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--auth-primary);
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(18, 158, 128, 0.15);
}

.auth-card .input-group .btn {
    border-radius: 0 0.75rem 0.75rem 0;
    border-color: #dee2e6;
}

.auth-card .btn-primary {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 600;
}

.auth-card .btn-primary:hover {
    background-color: var(--auth-primary-dark);
    border-color: var(--auth-primary-dark);
}

.auth-card .btn-outline-primary {
    --bs-btn-color: #129e80;
    --bs-btn-border-color: #129e80;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0f866d;
    --bs-btn-hover-border-color: #0f866d;
    border-radius: 999px;
    font-weight: 600;
}

.auth-card .alert {
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.auth-card .text-secondary {
    color: var(--auth-muted) !important;
}

.auth-card .link-primary {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

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

.auth-footnote {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.auth-footnote a {
    color: var(--auth-primary);
    text-decoration: none;
}

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

.auth-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #dee2e6;
}

.auth-summary-row:last-child {
    border-bottom: none;
}

@media (max-width: 576px) {
    .auth-main {
        padding: 1.25rem 0.85rem;
        align-items: flex-start;
    }

    .auth-card .card-body {
        padding: 1.25rem !important;
    }

    .auth-logo-link {
        width: 76px;
        height: 76px;
    }
}
