
:root {
    --dbn-green: #008751;
    --dbn-green-dark: #005f3b;
    --dbn-blue: #177dc0;
    --dbn-navy: #11364d;
    --dbn-gold: #f4b400;
    --dbn-red: #d64545;
    --ink: #14212b;
    --muted: #667085;
    --page: #f4f8fb;
    --surface: rgba(255,255,255,.92);
    --border: rgba(231,238,245,.9);
    --soft-green: #e8f8f0;
    --shadow: 0 30px 80px rgba(16,24,40,.14);
    --radius: 34px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--page);
}

body {
    overflow-x: hidden;
    background: radial-gradient(circle at top left, rgba(0,135,81,.16), transparent 28rem), radial-gradient(circle at top right, rgba(23,125,192,.14), transparent 32rem), radial-gradient(circle at bottom center, rgba(244,180,0,.08), transparent 26rem), var(--page);
}

a {
    text-decoration: none;
    transition: .25s ease;
}

.identity-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    zoom: 0.80;
}

    .identity-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(0,135,81,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,135,81,.04) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(to bottom, black, transparent 90%);
    }

.identity-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
    min-height: 760px;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.4);
    box-shadow: var(--shadow);
}

.identity-left {
    position: relative;
    padding: clamp(2rem, 4vw, 4rem);
    background: linear-gradient(145deg, rgba(0,72,45,.96), rgba(0,135,81,.88), rgba(23,125,192,.85)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80') center/cover;
    color: #fff;
    overflow: hidden;
}

    .identity-left::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.14), transparent 16rem), radial-gradient(circle at 80% 80%, rgba(255,255,255,.12), transparent 20rem);
    }

    .identity-left::after {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        right: -220px;
        bottom: -220px;
        border-radius: 999px;
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.18);
    }

.identity-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo img {
    max-height: 64px;
    width: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #effff6;
}

.identity-left h1 {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.06em;
    margin: 1.3rem 0;
    max-width: 620px;
}

.identity-left p {
    max-width: 560px;
    line-height: 1.9;
    color: rgba(255,255,255,.84);
    font-size: 1.05rem;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.insight-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px;
    padding: 1.1rem;
    backdrop-filter: blur(12px);
}

    .insight-card .icon {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 18px;
        background: rgba(255,255,255,.16);
        color: #fff;
        font-size: 1.3rem;
        margin-bottom: .85rem;
    }

    .insight-card h5 {
        font-weight: 900;
        margin-bottom: .45rem;
    }

    .insight-card p {
        margin: 0;
        font-size: .92rem;
        line-height: 1.7;
        color: rgba(255,255,255,.78);
    }

.floating-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: .8rem 1rem;
    backdrop-filter: blur(10px);
}

    .stat-pill strong {
        display: block;
        line-height: 1;
        font-size: 1.1rem;
    }

    .stat-pill span {
        color: rgba(255,255,255,.76);
        font-size: .8rem;
        font-weight: 700;
    }

.identity-right {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(20px);
    padding: clamp(1.8rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.top-nav {
    position: absolute;
    top: 1.4rem;
    right: 1.5rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

    .top-nav .btn {
        border-radius: 999px;
        font-weight: 800;
        padding: .55rem .95rem;
    }

.btn-soft {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--dbn-green-dark);
}

    .btn-soft:hover {
        background: var(--soft-green);
        border-color: rgba(0,135,81,.18);
        color: var(--dbn-green-dark);
    }

.btn-dbn {
    --bs-btn-bg: var(--dbn-green);
    --bs-btn-border-color: var(--dbn-green);
    --bs-btn-hover-bg: var(--dbn-green-dark);
    --bs-btn-hover-border-color: var(--dbn-green-dark);
    --bs-btn-color: #fff;
    border-radius: 18px;
    font-weight: 900;
    min-height: 56px;
    box-shadow: 0 18px 35px rgba(0,135,81,.22);
}

.auth-container {
    width: 100%;
    max-width: 520px;
    margin: auto;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--soft-green);
    color: var(--dbn-green-dark);
    border-radius: 999px;
    padding: .5rem .8rem;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.auth-title {
    font-family: Poppins, Inter, sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.05em;
    color: var(--dbn-navy);
    margin: 1rem 0 .5rem;
}

.auth-subtitle {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .9rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 54px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border);
    color: #344054;
    font-weight: 800;
}

    .social-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 35px rgba(16,24,40,.08);
    }

.divider {
    position: relative;
    text-align: center;
    margin: 1.4rem 0;
    color: var(--muted);
    font-weight: 700;
    font-size: .85rem;
}

    .divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: var(--border);
        z-index: 1;
    }

    .divider span {
        position: relative;
        z-index: 2;
        background: rgba(255,255,255,.92);
        padding: 0 .8rem;
    }

.form-floating > .form-control,
.form-floating > .form-select {
    min-height: 64px;
    border-radius: 20px;
    border: 1px solid #d9e2ec;
    background: rgba(255,255,255,.94);
    font-weight: 600;
    box-shadow: none !important;
}

.form-floating > label {
    color: #667085;
    font-weight: 600;
    padding-left: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(0,135,81,.45);
    box-shadow: 0 0 0 .25rem rgba(0,135,81,.12) !important;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #667085;
    z-index: 5;
}

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.6rem;
    flex-wrap: wrap;
}

.form-check-input:checked {
    background-color: var(--dbn-green);
    border-color: var(--dbn-green);
}

.auth-link {
    color: var(--dbn-green);
    font-weight: 800;
}

    .auth-link:hover {
        color: var(--dbn-green-dark);
    }

.security-banner {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: linear-gradient(135deg, rgba(0,135,81,.08), rgba(23,125,192,.08));
    border: 1px solid rgba(0,135,81,.12);
    border-radius: 22px;
    padding: 1rem;
    margin-top: 1.5rem;
}

    .security-banner .shield {
        width: 52px;
        height: 52px;
        display: grid;
        place-items: center;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--dbn-green), var(--dbn-blue));
        color: #fff;
        font-size: 1.2rem;
    }

    .security-banner h6 {
        margin: 0 0 .2rem;
        font-weight: 900;
        color: var(--dbn-navy);
    }

    .security-banner p {
        margin: 0;
        color: var(--muted);
        font-size: .9rem;
        line-height: 1.6;
    }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: .94rem;
}

    .auth-footer strong {
        color: var(--dbn-navy);
    }

.verification-box {
    display: flex;
    gap: .75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

    .verification-box input {
        width: 68px;
        height: 74px;
        border-radius: 22px;
        border: 1px solid #d9e2ec;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--dbn-green-dark);
        background: #fff;
    }

        .verification-box input:focus {
            outline: none;
            border-color: rgba(0,135,81,.45);
            box-shadow: 0 0 0 .25rem rgba(0,135,81,.12);
        }

.tabs-shell {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem;
    display: inline-flex;
    gap: .35rem;
    margin-bottom: 1.8rem;
}

    .tabs-shell .nav-link {
        border-radius: 999px;
        color: #475467;
        font-weight: 800;
        padding: .7rem 1.2rem;
    }

        .tabs-shell .nav-link.active {
            background: linear-gradient(135deg, var(--dbn-green), var(--dbn-blue));
            color: #fff;
            box-shadow: 0 12px 24px rgba(0,135,81,.18);
        }

@media (max-width: 1199.98px) {
    .identity-card {
        max-width: 1080px;
    }
}

@media (max-width: 991.98px) {
    .identity-shell {
        padding: 1rem;
    }

    .identity-card {
        min-height: auto;
    }

    .identity-left {
        min-height: 420px;
    }

    .identity-right {
        padding-top: 5rem;
    }

    .top-nav {
        left: 1rem;
        right: auto;
    }
}

@media (max-width: 575.98px) {
    .social-auth {
        grid-template-columns: 1fr;
    }

    .verification-box input {
        width: 56px;
        height: 64px;
    }

    .tabs-shell {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 24px;
    }
}


.auth-sso-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 62px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(25, 135, 84, 0.35);
    border-radius: 14px;
    background: rgba(25, 135, 84, 0.06);
    color: var(--dbn-green, #198754);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-sso-btn:hover {
        color: var(--dbn-green-dark, #146c43);
        border-color: rgba(25, 135, 84, 0.65);
        background: rgba(25, 135, 84, 0.11);
        box-shadow: 0 10px 25px rgba(25, 135, 84, 0.12);
        transform: translateY(-1px);
    }

    .auth-sso-btn:focus {
        color: var(--dbn-green-dark, #146c43);
        border-color: rgba(25, 135, 84, 0.75);
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
    }

    .auth-sso-btn:disabled {
        opacity: 0.75;
        cursor: wait;
        transform: none;
    }

.auth-sso-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(20, 108, 67, 0.1);
    font-size: 1.15rem;
}

.auth-sso-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.25;
}

    .auth-sso-text strong {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .auth-sso-text small {
        margin-top: 0.2rem;
        color: #6c757d;
        font-size: 0.78rem;
        font-weight: 400;
    }

.auth-sso-arrow {
    flex: 0 0 auto;
    font-size: 1rem;
}

.auth-validation:empty {
    display: none;
}