/* ============================================================
   POST OFFICE — Admin Login
   admin_login.css
   Modern Premium UI
   ============================================================ */

:root {
    --navy-900: #081a35;
    --navy-800: #0f2549;
    --navy-700: #173766;
    --blue-600: #1f4fa3;
    --blue-500: #3a72c4;
    --blue-400: #5b8ddd;
    --red-600: #d62839;
    --red-700: #a81f2d;
    --ink-800: #16233d;
    --ink-500: #5c6b85;
    --paper: rgba(255, 255, 255, 0.88);
    --hairline: rgba(15, 37, 73, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-image: url('/Images/Postoffice.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}


/* ============================================================
   MAIN OVERLAY
   ============================================================ */

.page-scrim {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 90deg, rgba(5, 18, 40, 0.78) 0%, rgba(5, 18, 40, 0.58) 32%, rgba(5, 18, 40, 0.25) 58%, rgba(5, 18, 40, 0.10) 100% );
}


/* ============================================================
   BRAND HEADER
   ============================================================ */

.brand-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 32px 0;
}

.brand-mark {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 17px;
}

    .brand-mark img {
        width: 68px;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.brand-copy h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #fff;
}

.brand-copy span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 300;
    color: #d4deef;
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.content-row {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(400px, 520px) 1fr;
    align-items: center;
    gap: 30px;
    padding: 30px 6vw 55px;
}


/* ============================================================
   LEFT INTRO PANEL
   ============================================================ */

.intro-panel {
    grid-column: 1;
    justify-self: start;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.intro-eyebrow {
    font-size: 15px;
    font-weight: 400;
    color: #b8ccef;
    margin: 0 0 5px;
}

.intro-heading {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #fff;
    letter-spacing: -0.5px;
}

.intro-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #d8e0ef;
    max-width: 38ch;
    margin: 0 0 28px;
}


/* ============================================================
   FEATURE LIST
   ============================================================ */

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 14.5px;
        font-weight: 400;
        color: #eef3fb;
    }

.feature-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.login-card {
    grid-column: 2 / 4;
    justify-self: end;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.70);
    padding: 38px 32px 30px;
    box-shadow: 0 30px 70px rgba(4, 12, 28, 0.40), 0 10px 30px rgba(4, 12, 28, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.80);
    color: var(--ink-800);
    animation: cardIn 0.6s ease-out;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================================
   LOGIN CARD LOGO
   ============================================================ */

.card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
}

    .card-icon img {
        width: 70px;
        height: 100%;
        object-fit: contain;
        display: block;
    }


/* ============================================================
   CARD TITLES
   ============================================================ */

.card-title {
    text-align: center;
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    color: var(--navy-800);
    letter-spacing: 0.4px;
}

.card-subtitle {
    text-align: center;
    margin: 3px 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--blue-600);
}

.welcome-msg {
    text-align: center;
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-500);
    margin: 0 0 24px;
    line-height: 1.55;
}


/* ============================================================
   FORM
   ============================================================ */

.form-group {
    position: relative;
    margin-bottom: 18px;
}

    .form-group .left-icon {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 18px;
        display: flex;
        align-items: center;
        color: #8994a8;
        font-size: 14px;
        z-index: 2;
    }

.form-control {
    width: 100%;
    height: 48px;
    border-radius: 30px;
    border: 1px solid rgba(15, 37, 73, 0.10);
    padding: 0 45px;
    background: rgba(244, 247, 252, 0.96);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--ink-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .form-control::placeholder {
        font-weight: 400;
        color: #8a93a6;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--blue-500);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(58, 114, 196, 0.16), 0 5px 15px rgba(31, 79, 163, 0.08);
    }

.password-group .toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8994a8;
    font-size: 15px;
    transition: color 0.2s ease;
}

    .password-group .toggle-password:hover {
        color: var(--blue-600);
    }


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.btn-login {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border-radius: 30px;
    border: none;
    background: linear-gradient( 135deg, #2458ad 0%, #173f82 100% );
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(23, 63, 130, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(23, 63, 130, 0.32);
        filter: brightness(1.05);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login i {
        font-size: 13px;
    }


/* ============================================================
   FOOTER NOTE
   ============================================================ */

.card-footer-note {
    text-align: center;
    margin: 20px 0 0;
    font-size: 11.5px;
    font-weight: 400;
    color: #9aa4b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .card-footer-note i {
        color: #8d99ae;
    }


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .content-row {
        grid-template-columns: 1fr minmax(380px, 420px);
        gap: 20px;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .intro-panel {
        grid-column: 1;
    }

    .login-card {
        grid-column: 2;
        transform: translateX(30px);
    }

    @keyframes cardIn {
        from {
            opacity: 0;
            transform: translateX(70px);
        }

        to {
            opacity: 1;
            transform: translateX(30px);
        }
    }
}


/* ============================================================
   TABLETS / SMALL SCREENS
   ============================================================ */

@media (max-width: 991.98px) {

    .content-row {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 25px;
    }

    .intro-panel {
        display: none;
    }

    .login-card {
        width: 100%;
        max-width: 400px;
        transform: none;
    }

    @keyframes cardIn {
        from {
            opacity: 0;
            transform: translateY(25px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    body {
        background-image: url('/Images/mbpost.png');
        background-position: center top;
        background-attachment: scroll;
    }

    .page-scrim {
        min-height: 100vh;
        background: linear-gradient( 180deg, rgba(8, 18, 38, 0.76) 0%, rgba(8, 18, 38, 0.48) 45%, rgba(8, 18, 38, 0.76) 100% );
    }

    .brand-header {
        padding: 20px 18px 0;
        justify-content: center;
        text-align: center;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
        border-radius: 15px;
        padding: 9px;
    }

    .brand-copy h1 {
        font-size: 18px;
    }

    .brand-copy span {
        display: none;
    }

    .content-row {
        width: 100%;
        padding: 28px 18px 35px;
    }

    .login-card {
        width: 100%;
        max-width: 400px;
        padding: 32px 24px 26px;
        transform: none;
        border-radius: 22px;
    }

    .card-icon {
        width: 64px;
        height: 64px;
        border-radius: 17px;
        padding: 11px;
    }

    .card-title {
        font-size: 20px;
    }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .brand-header {
        padding-top: 18px;
    }

    .login-card {
        padding: 28px 18px 22px;
        border-radius: 20px;
    }

    .brand-copy h1 {
        font-size: 17px;
    }

    .welcome-msg {
        font-size: 12px;
    }
}
