/* ── Login page — Bunjil View GIS theme ── */

body,
input, button, textarea, select, label,
span:not(.input-group-text i), a,
p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* ── Background dot canvas ── */
.dot-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.login-content {
    position: relative;
    z-index: 10;
}

/* ── Card ── */
.card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #f0f0f1;
    color: #212529;
    font-size: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02), 0 1px 4px rgba(0, 0, 0, 0.01);
    border-radius: 16px;
}

.card a { color: var(--color-text-muted); }

.card-body {
    padding: 40px 38px;
}

/* ── Brand header ── */
.login-brand-logo {
    max-height: 62px;
    max-width: 200px;
    width: auto;
}

.login-brand-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0;
}

/* ── Form elements ── */
.form-control {
    font-size: 14px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #212529 !important;
}

.form-control::placeholder { color: #9ca3af !important; }
.form-control:focus { background: #ffffff !important; border-color: var(--color-primary) !important; box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15) !important; }

.input-group-text {
    background: #f8fafc !important;
    color: #6c7786 !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 0 !important;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--color-primary) !important;
    border: 0;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-light {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #374151 !important;
    transition: all 0.25s;
}

.btn-light:hover {
    background: #f1f5f9 !important;
}

/* ── Divider ── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0.75rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Checkbox & links ── */
.form-check-input { border-color: #d1d5db !important; background: #fff !important; }
.form-check-input:checked { background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; }

/* ── Toggle password ── */
.toggle-password {
    background: #f8fafc !important;
    color: #6c7786 !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 0 !important;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-password:hover { background: #f1f5f9 !important; }

/* ── Alert ── */
.alert-login ul { margin-bottom: 0 !important; padding-left: 15px !important; }

/* ── Lucide icons ── */
.input-group-text svg,
.toggle-password svg,
.btn-primary svg { width: 18px; height: 18px; }

@keyframes lucide-spin-anim { to { transform: rotate(360deg); } }
svg.lucide-spin { animation: lucide-spin-anim 0.8s linear infinite; }

