* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Segoe UI, Arial, sans-serif;
    background: #f3f7fa;
    color: #17324d;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */

header {
    height: 76px;
    padding: 0 6%;
    background: linear-gradient(110deg, #064c83, #087db2);
    color: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: #075b9a;

    display: grid;
    place-items: center;

    font-weight: 800;
}

.brand b {
    font-size: 21px;
    display: block;
}

.brand small {
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.utility {
    font-size: 14px;
}


/* ================= MAIN ================= */

main {
    flex: 1;
    padding: 40px 15px;
}

.wrap {
    max-width: 940px;
    margin: auto;
}


/* ================= HERO ================= */

.hero {
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: 20px;
    padding: 30px;

    display: flex;
    justify-content: space-between;

    box-shadow: 0 10px 35px #174e7210;
}

.hero small,
.card > small {
    color: #008080;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero h1 {
    margin: 7px 0;
    font-size: 30px;
}

.hero p,
.card p {
    color: #6c7d8d;
}

.lock {
    font-size: 48px;
}


/* ================= STEPS ================= */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 25px 0;

    color: #9aaab6;
    font-size: 12px;
    font-weight: 700;
}

.steps span.on {
    color: #075b9a;
}

.steps i {
    width: 65px;
    height: 2px;
    background: #d7e1e8;
    margin: 0 10px;
}


/* ================= CARD ================= */

.card {
    background: #fff;
    border: 1px solid #dce6ee;
    border-radius: 18px;
    padding: 30px;

    box-shadow: 0 10px 35px #174e7210;
}

.narrow {
   // max-width: 600px;
   // margin: auto;
}

.card h2 {
    margin: 7px 0;
}

.card label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin: 18px 0 7px;
}


/* ================= INPUT ================= */

.input {
    width: 100%;
    padding: 13px;

    border: 1px solid #ccd9e3;
    border-radius: 10px;

    font-size: 14px;
}


/* ================= BUTTON ================= */

.card button {
    width: 100%;
    border: 0;
    border-radius: 10px;

    padding: 13px;
    margin-top: 18px;

    background: linear-gradient(
        100deg,
        #075b9a,
        #087db2
    );

    color: #fff;
    font-weight: 800;
    cursor: pointer;
}


/* ================= EMPLOYEE DETAILS ================= */

.details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    margin: 20px 0;
}

.details div {
    background: #f7fafc;
    border: 1px solid #e4edf3;
    border-radius: 10px;
    padding: 12px;
}

.details small {
    display: block;
    color: #7b8b99;
    font-size: 10px;
    text-transform: uppercase;
}


/* ================= APPLICATIONS ================= */

.apps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.app {
    position: relative;
    display: block;

    border: 1px solid #d5e0e8;
    border-radius: 12px;

    padding: 15px !important;

    background: #fff;
    cursor: pointer;

    transition: 0.2s;
}

/* Radio button visible */
.app input[type="radio"] {
    display: inline-block;
    width: 18px;
    height: 18px;

    margin: 0 8px 0 0;

    vertical-align: middle;

    cursor: pointer;
}

/* Selected card */
.app:has(input[type="radio"]:checked) {
    border-color: #075b9a;
    background: #edf7fc;
}

/* Application name */
.app b {
    color: #075b9a;
    font-size: 18px;
}

.app small {
    display: block;
    color: #6c7d8d;
    margin-top: 6px;
    margin-left: 27px;
}

/* ================= OTP / SUCCESS ================= */

.otp,
.success {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    margin: 0 auto 15px;

    font-size: 28px;
}

.otp {
    background: #eaf6fb;
    color: #075b9a;
}

.success {
    background: #e9faf3;
    color: #087c5a;
}


/* ================= OTP INPUT ================= */

.otpinput {
    text-align: center;
    letter-spacing: 8px;
    font-size: 25px;

    padding: 15px;
    width: 100%;

    border: 1px solid #ccd9e3;
    border-radius: 10px;
}


/* ================= PASSWORD ================= */

.password {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #102f46;
    color: #fff;

    padding: 15px;
    border-radius: 10px;

    font-family: monospace;
    font-size: 18px;

    margin: 20px 0;
}

.password button {
    width: auto;
    margin: 0;
    background: #fff;
    color: #17324d;
    padding: 7px 12px;
}


/* ================= SECONDARY BUTTON ================= */

.secondary {
    display: block;

    background: #eef4f8;
    color: #075b9a;

    text-decoration: none;

    padding: 12px;
    border-radius: 10px;

    font-weight: 700;
}


/* ================= ALERT ================= */

.alert {
    background: #fff1f1;
    border: 1px solid #ffd4d1;
    color: #b42318;

    padding: 13px;
    border-radius: 10px;

    margin-bottom: 18px;
}


/* ================= FOOTER ================= */

footer {
    background: #11384f;
    color: #dceaf2;

    padding: 18px 6%;

    display: flex;
    justify-content: space-between;

    font-size: 12px;
}


/* =========================================================
   BACK / LOGOUT BUTTONS
   ========================================================= */

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 16px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.back-btn {
    background: #eef4f8;
    color: #075b9a;
    border: 1px solid #d6e2ea;
}

.logout-btn {
    background: #fff1f1;
    color: #b42318;
    border: 1px solid #ffd4d1;
}

.back-btn:hover {
    background: #e2edf4;
}

.logout-btn:hover {
    background: #ffe4e1;
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    header {
        padding: 0 18px;
    }

    .utility {
        display: none;
    }

    .hero {
        padding: 22px;
    }

    .lock {
        display: none;
    }

    .steps {
        overflow: auto;
        justify-content: flex-start;
    }

    .steps span {
        white-space: nowrap;
    }

    .steps i {
        width: 30px;
    }

    .card {
        padding: 22px 18px;
    }

    .details,
    .apps {
        grid-template-columns: 1fr;
    }

    footer {
        display: block;
        text-align: center;
    }

    footer div + div {
        margin-top: 8px;
    }

}