:root {
    --primary-dark: #12365a;
    --primary: #1565c0;
    --surface: #f5f7fb;
    --text-dark: #17212b;
}

body {
    color: var(--text-dark);
}

.app-body {
    background: var(--surface);
    min-height: 100vh;
}

.auth-body {
    margin: 0;
    background: #ffffff;
}

.auth-hero {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(
            135deg,
            rgba(5, 34, 66, 0.88),
            rgba(13, 110, 253, 0.70)
        ),
        url("../images/ambulance-login.jpg")
        center center / cover no-repeat;
    overflow: hidden;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.16),
            transparent 45%
        );
}

.auth-hero-description {
    max-width: 620px;
    opacity: 0.9;
}

.auth-hero-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.auth-form-section {
    position: relative;
    min-height: 100vh;
    padding: 48px 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(13, 110, 253, 0.08),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f3f6fa 100%
        );
}

.login-panel {
    width: min(100%, 540px);
}

.login-card {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 42px;
    right: 42px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(
        90deg,
        #0d6efd,
        #38bdf8
    );
}

.login-card h2 {
    letter-spacing: -0.03em;
}

.login-card .form-label {
    margin-bottom: 9px;
}

.login-card .input-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.login-card .input-group-text {
    min-width: 62px;
    justify-content: center;
    border-right: 0;
    background: #f8fafc !important;
}

.login-card .form-control {
    min-height: 64px;
    border-left: 0;
    background: #ffffff;
}

.login-card .form-control:focus {
    box-shadow: none;
}

.login-card .input-group:focus-within {
    box-shadow: 0 0 0 0.24rem rgba(13, 110, 253, 0.12);
}

.login-card .input-group:focus-within .form-control,
.login-card .input-group:focus-within .input-group-text {
    border-color: rgba(13, 110, 253, 0.65);
}

.login-card .btn-primary {
    min-height: 62px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #0d6efd,
        #2563eb
    );
    box-shadow: 0 12px 26px rgba(13, 110, 253, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(13, 110, 253, 0.3);
}

.brand-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

.brand-icon-large {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.demo-login-box {
    border: 1px dashed #ced4da;
    border-radius: 14px;
    padding: 16px;
    background: #f8f9fa;
}

.navbar {
    min-height: 72px;
}

.emergency-banner {
    border: 1px solid rgba(220, 53, 69, 0.16);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 238, 240, 0.98)
        );
    box-shadow: 0 14px 40px rgba(30, 41, 59, 0.06);
}

.emergency-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: #dc3545;
    font-size: 1.45rem;
}

.dashboard-card {
    box-shadow: 0 12px 34px rgba(30, 41, 59, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(30, 41, 59, 0.11);
}

.dashboard-card-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    font-size: 1.4rem;
}

.call-icon {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.12);
}

.whatsapp-icon {
    color: #198754;
    background: rgba(25, 135, 84, 0.12);
}

.detail-box {
    height: 100%;
    border-radius: 14px;
    padding: 16px;
    background: #f8f9fa;
}

.detail-label {
    margin-bottom: 5px;
    color: #6c757d;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.25rem;
}

.empty-state-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #6c757d;
    background: #f1f3f5;
    font-size: 1.65rem;
}

.availability-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #198754;
    box-shadow: 0 0 0 6px rgba(25, 135, 84, 0.12);
}

.form-control,
.form-select,
.input-group-text {
    border-color: #dfe3e8;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13, 110, 253, 0.6);
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.12);
}

@media (max-width: 767.98px) {
    main.container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .navbar .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .emergency-banner {
        padding: 24px !important;
    }

    .emergency-banner .btn {
        width: 100%;
    }
}