html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background: #f5f7fb;
    color: #1f2937;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(37, 140, 251, 0.25);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
}

.table {
    background: #fff;
}

    .table thead th {
        font-size: 0.9rem;
        font-weight: 600;
        color: #475569;
        border-bottom-width: 1px;
    }

.badge {
    font-size: 0.78rem;
    padding: 0.45em 0.65em;
    border-radius: 999px;
}

.display-6 {
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: 10px;
}

.btn {
    border-radius: 10px;
}

small.text-muted {
    color: #6b7280 !important;
}

.identity-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

    .identity-shell main,
    .identity-shell #content,
    .identity-shell .row {
        width: 100%;
    }

    .identity-shell .row {
        justify-content: center;
    }

    .identity-shell .col-md-4,
    .identity-shell .col-lg-4,
    .identity-shell .col-sm-6 {
        max-width: 460px;
        width: 100%;
    }

    .identity-shell .card,
    .identity-shell form {
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    }

    .identity-shell form {
        padding: 2rem;
        border: 1px solid #eef2f7;
    }

    .identity-shell h1,
    .identity-shell h2 {
        font-weight: 700;
        margin-bottom: 1rem;
        color: #0f172a;
    }

    .identity-shell .form-floating,
    .identity-shell .form-group,
    .identity-shell .mb-3 {
        margin-bottom: 1rem;
    }

    .identity-shell .form-control {
        min-height: 48px;
        border-radius: 12px;
        border: 1px solid #dbe3ee;
    }

    .identity-shell .btn-primary,
    .identity-shell button[type="submit"] {
        min-height: 46px;
        border-radius: 12px;
        font-weight: 600;
        width: 100%;
    }

    .identity-shell a {
        text-decoration: none;
    }

    .identity-shell .checkbox,
    .identity-shell .form-check {
        margin-top: 0.5rem;
    }

    .identity-shell .text-danger {
        font-size: 0.9rem;
    }

body:has(.identity-shell) {
    background: radial-gradient(circle at top left, rgba(59,130,246,0.10), transparent 30%), radial-gradient(circle at bottom right, rgba(16,185,129,0.08), transparent 28%), #f5f7fb;
}

.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 420px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.login-title {
    text-align: center;
    margin-bottom: 25px;
}

    .login-title h3 {
        font-weight: 700;
    }

.login-input {
    height: 46px;
    border-radius: 10px;
}

.login-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
}