/* =========================================================
   1. GLOBAL VARIABLES
   ========================================================= */

:root {
    --blue: #05529B;
    --deep: #153E8C;
    --yellow: #FFCD29;
    --ink: #243447;
    --border: #D6DFE9;
}


/* =========================================================
   2. BODY & BACKGROUND
   ========================================================= */

.login-body {
    margin: 0;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    overflow-x: hidden;

    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);

    background:
        linear-gradient(
            110deg,
            rgba(5, 48, 95, .93),
            rgba(5, 82, 155, .87)
        ),
        url("../../brand/pique-ultra-bg.svg") center / cover no-repeat;
}


/* =========================================================
   3. COMPANY BRAND & LOGO
   ========================================================= */

.page-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;

    gap: 16px;
    padding: 16px clamp(20px, 5vw, 72px);

    box-sizing: border-box;
}

.page-brand__badge {
    display: flex;
    align-items: center;

    padding: 8px 0;
}

.page-brand__logo {
    display: block;

    height: 38px;
    width: auto;
    max-width: 100%;

    object-fit: contain;
}


/* =========================================================
   4. LOGIN PAGE LAYOUT
   ========================================================= */

.login-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);

    align-items: center;

    flex: 1 0 auto;

    gap: clamp(32px, 7vw, 100px);

    width: 100%;
    max-width: 1440px;
    min-height: 0;

    margin: 0 auto;
    padding: 20px clamp(20px, 6vw, 90px) 30px;

    box-sizing: border-box;
}


/* =========================================================
   5. HERO SECTION
   ========================================================= */

.hero-text {
    max-width: 650px;

    color: white;
}

.hero-text::before {
    content: "PIQUE SECURE ACCESS";

    display: inline-block;

    font-size: 12px;
    font-weight: 650;
    letter-spacing: 2px;

    color: #DDF2FC;
    border-left: 3px solid var(--yellow);

    margin-bottom: 22px;
    padding-left: 12px;
}


/* Hero title */

.hero-title {
    font-size: clamp(34px, 4.3vw, 60px);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -1.6px;

    color: white;

    margin: 0 0 24px;
}

.hero-title::after {
    content: "";

    display: block;

    width: 56px;
    height: 4px;

    background: var(--yellow);
    border-radius: 3px;

    margin-top: 25px;
}


/* Hero description */

.hero-description {
    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 600;

    color: white;

    margin: 0 0 12px;
}

.hero-detail {
    max-width: 490px;

    font-size: 15px;
    line-height: 1.75;

    color: #DDEBFA;

    margin: 0;
}


/* =========================================================
   6. LOGIN CARD
   ========================================================= */

.login-card {
    width: 100%;
    min-width: 0;

    background: white;

    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;

    padding: clamp(24px, 3vw, 36px);

    box-sizing: border-box;

    box-shadow: 0 18px 45px rgba(8, 34, 66, .20);
}


/* Login card title */

.login-title {
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -.6px;
    font-weight: 700;

    color: var(--blue);
}

.login-subtitle {
    font-size: 13px;
    line-height: 1.5;

    color: #64748B;
}


/* Login card icon */

.login-badge {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    color: var(--blue);
    background: #E8F2FC;
}


/* =========================================================
   7. LOGIN FORM
   ========================================================= */

.login-card .form-label {
    font-size: 13px;
    font-weight: 600;

    color: var(--ink);

    margin-bottom: 7px;
}

.login-card .mb-3 {
    margin-bottom: 20px !important;
}


/* Input group */

.login-card .input-group {
    border: 1px solid var(--border);
    background: #F8FAFC;
    border-radius: 9px;

    overflow: hidden;
}

.login-card .input-group:focus-within {
    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(5, 82, 155, .13);
}


/* Username & password input */

.login-card .login-input {
    min-height: 46px;

    background: transparent;
    color: var(--ink);

    border: 0;
    box-shadow: none;

    font-size: 14px;
    padding: 10px;
}

.login-card .login-input::placeholder {
    color: #64748B;
}


/* Input group icons */

.login-card .login-ig-left,
.login-card .login-ig-right {
    background: transparent;
    color: #527291;

    border: 0;
    padding: 0 14px;
}

.login-card .login-ig-right:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -3px;
}


/* =========================================================
   8. CLOUDFLARE TURNSTILE CAPTCHA
   ========================================================= */

.captcha-box {
    min-height: 66px;
    max-width: 100%;

    padding: 0;
}

.cf-turnstile {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   9. LOGIN BUTTON
   ========================================================= */

.login-btn {
    min-height: 47px;

    background: var(--blue);
    color: white;

    border: 1px solid var(--blue);
    border-radius: 9px;

    font-weight: 650;
    font-size: 15px;
}

.login-btn:hover,
.login-btn:focus-visible {
    background: var(--deep);
    color: white;

    border-color: var(--deep);
}


/* =========================================================
   10. RESPONSIVE - COMPACT DESKTOP
   ========================================================= */

@media (min-width: 801px) and (max-height: 800px) {

    .page-brand {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .page-brand__badge {
        padding: 4px 0;
    }

    .page-brand__logo {
        height: 34px;
    }

    .login-wrap {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .login-card {
        padding: 24px;
    }

    .login-title {
        font-size: 27px;
    }

    .login-card .mb-3 {
        margin-bottom: 14px !important;
    }

    .login-card .login-input {
        min-height: 42px;
    }

    .login-btn {
        min-height: 44px;
    }

    .hero-title {
        font-size: clamp(32px, 4vw, 52px);

        margin-bottom: 20px;
    }

    .hero-title::after {
        margin-top: 20px;
    }

    .hero-text::before {
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-detail {
        font-size: 14px;
    }

}


/* =========================================================
   11. RESPONSIVE - SHORT DESKTOP SCREEN
   ========================================================= */

@media (min-width: 801px) and (max-height: 650px) {

    .page-brand {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .page-brand__logo {
        height: 30px;
    }

    .login-wrap {
        padding-top: 8px;
        padding-bottom: 16px;
    }

    .login-card {
        padding: 20px;
    }

    .login-title {
        font-size: 25px;
    }

    .login-card .mb-3 {
        margin-bottom: 12px !important;
    }

    .login-card .login-input {
        min-height: 40px;
    }

    .hero-title {
        font-size: clamp(30px, 3.5vw, 46px);
    }

    .hero-detail {
        line-height: 1.5;
    }

}


/* =========================================================
   12. RESPONSIVE - TABLET & MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .login-wrap {
        grid-template-columns: 1fr;

        flex: 0 0 auto;

        max-width: 520px;
        min-height: 0;

        gap: 28px;

        padding-top: 24px;
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -.8px;

        margin-bottom: 14px;
    }

    .hero-title::after {
        margin-top: 15px;
    }

    .hero-text::before {
        margin-bottom: 12px;
    }

    .hero-detail {
        display: none;
    }

    .page-brand__logo {
        height: 30px;
    }

    .login-card {
        padding: 24px;
    }

}


/* =========================================================
   13. RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .login-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card {
        padding: 16px;
    }

    .page-brand {
        padding: 16px 12px;
    }

    .page-brand__logo {
        height: 25px;
    }

}
