﻿/* =========================================================
   BRIGO ERP
   PREMIUM ENTERPRISE LOGIN
   VERSION 2026
   RTL / MOBILE FIRST / RESPONSIVE
========================================================= */

:root {
    --navy-950: #04101f;
    --navy-900: #06182d;
    --navy-800: #082442;
    --navy-700: #0c3560;
    --blue-600: #1769e8;
    --blue-500: #2f82ff;
    --cyan-400: #56d7ff;
    --white: #ffffff;
    --text-900: #122038;
    --text-700: #40516a;
    --text-500: #718198;
    --text-400: #98a5b5;
    --border: #e0e7ef;
    --danger: #d94d5c;
    --success: #16a77b;
    --page-bg: #edf3f9;
    --font: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    direction: rtl;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: var(--font);
    color: var(--text-900);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

button,
input {
    font-family: inherit;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   PAGE
========================================================= */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient( circle at 8% 12%, rgba(23,105,232,.13), transparent 28% ), radial-gradient( circle at 92% 88%, rgba(86,215,255,.11), transparent 30% ), linear-gradient( 135deg, #f8fbff 0%, #edf3f9 48%, #e9f0f7 100% );
}

.background-noise {
    position: absolute;
    inset: 0;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.background-grid {
    position: absolute;
    inset: 0;
    opacity: .26;
    background-image: linear-gradient( rgba(20,52,90,.035) 1px, transparent 1px ), linear-gradient( 90deg, rgba(20,52,90,.035) 1px, transparent 1px );
    background-size: 46px 46px;
    mask-image: linear-gradient( to bottom, #000, transparent 92% );
}

.background-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(3px);
    animation: glowFloat 12s ease-in-out infinite;
}

.glow-blue {
    width: 520px;
    height: 520px;
    top: -300px;
    right: -170px;
    background: radial-gradient( circle, rgba(23,105,232,.17), transparent 68% );
}

.glow-cyan {
    width: 570px;
    height: 570px;
    left: -300px;
    bottom: -350px;
    background: radial-gradient( circle, rgba(86,215,255,.15), transparent 68% );
    animation-delay: -4s;
}

.glow-white {
    width: 300px;
    height: 300px;
    left: 45%;
    top: 40%;
    background: radial-gradient( circle, rgba(255,255,255,.9), transparent 70% );
    animation-delay: -8s;
}

@keyframes glowFloat {

    0%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }

    50% {
        transform: translate3d(0,-18px,0) scale(1.04);
    }
}


/* =========================================================
   ORBITS
========================================================= */

.background-orbit {
    position: absolute;
    border: 1px solid rgba(23,105,232,.07);
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(-20deg);
    animation: orbitFloat 18s linear infinite;
}

.orbit-one {
    width: 580px;
    height: 230px;
    top: -30px;
    right: -120px;
}

.orbit-two {
    width: 450px;
    height: 180px;
    bottom: -60px;
    left: -100px;
    animation-duration: 23s;
    animation-direction: reverse;
}

@keyframes orbitFloat {

    from {
        transform: rotate(-20deg);
    }

    to {
        transform: rotate(340deg);
    }
}


/* =========================================================
   PARTICLES
========================================================= */

.background-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(23,105,232,.24);
    box-shadow: 0 0 12px rgba(23,105,232,.25);
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-one {
    top: 18%;
    left: 12%;
}

.particle-two {
    top: 72%;
    right: 14%;
    animation-delay: -2s;
}

.particle-three {
    top: 28%;
    right: 24%;
    animation-delay: -4s;
}

.particle-four {
    bottom: 18%;
    left: 28%;
    animation-delay: -6s;
}

.particle-five {
    top: 50%;
    left: 8%;
    animation-delay: -1s;
}

@keyframes particleFloat {

    0%, 100% {
        transform: translateY(0);
        opacity: .35;
    }

    50% {
        transform: translateY(-18px);
        opacity: .9;
    }
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.login-container {
    position: relative;
    z-index: 10;
    width: min( 1120px, 100% );
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
    direction: ltr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 30px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 45px 120px rgba(8,36,66,.16), 0 12px 35px rgba(8,36,66,.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: containerIn .7s cubic-bezier(.22,1,.36,1) both;
}

@keyframes containerIn {

    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   BRAND SECTION
========================================================= */

.brand-section {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px 58px 36px;
    direction: rtl;
    color: #fff;
    overflow: hidden;
    background: radial-gradient( circle at 20% 20%, rgba(86,215,255,.15), transparent 30% ), radial-gradient( circle at 88% 86%, rgba(23,105,232,.22), transparent 35% ), linear-gradient( 145deg, #041426 0%, #061d37 48%, #092f59 100% );
}

    .brand-section::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        top: -330px;
        left: -240px;
        border: 1px solid rgba(255,255,255,.07);
        border-radius: 50%;
        box-shadow: 0 0 0 38px rgba(255,255,255,.012), 0 0 0 78px rgba(255,255,255,.008);
    }

    .brand-section::after {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        right: -180px;
        bottom: -200px;
        border: 1px solid rgba(86,215,255,.09);
        border-radius: 50%;
    }

.brand-top,
.brand-main,
.brand-bottom {
    position: relative;
    z-index: 2;
}


/* =========================================================
   BRAND TOP
========================================================= */

.brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

    .brand-logo img {
        width: 100%;
        height: 100%;
        padding: 8px;
        object-fit: contain;
    }

    .brand-logo span {
        color: #fff;
        font-family: Arial, sans-serif;
        font-size: 31px;
        font-weight: 900;
    }

.brand-meta strong {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.brand-meta span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.42);
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.7px;
}


/* =========================================================
   BRAND MAIN
========================================================= */

.brand-main {
    max-width: 520px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 50px 0 30px;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #69d7ff;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

    .brand-eyebrow::before {
        content: "";
        width: 26px;
        height: 2px;
        background: #4fcaff;
        border-radius: 10px;
    }

.brand-main h1 {
    margin: 15px 0 0;
    color: #fff;
    font-size: clamp( 34px, 4vw, 51px );
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -1.2px;
}

    .brand-main h1 span {
        color: #62d3ff;
    }

.brand-main p {
    max-width: 470px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.61);
    font-size: 13px;
    line-height: 2.05;
    font-weight: 500;
}


/* =========================================================
   BRAND STATS
========================================================= */

.brand-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.brand-stat {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
}

.stat-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    color: #68d8ff;
    background: rgba(86,215,255,.08);
    border-radius: 9px;
}

    .stat-icon svg {
        width: 16px;
        height: 16px;
    }

.brand-stat strong {
    display: block;
    color: rgba(255,255,255,.85);
    font-size: 9px;
    font-weight: 800;
}

.brand-stat small {
    display: block;
    margin-top: 1px;
    color: rgba(255,255,255,.39);
    font-size: 7px;
    font-weight: 500;
}


/* =========================================================
   BRAND BOTTOM
========================================================= */

.brand-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-powered {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.36);
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 1px;
}

    .brand-powered strong {
        color: rgba(255,255,255,.78);
        font-size: 8px;
        letter-spacing: 1.6px;
    }

.brand-secure {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.35);
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.secure-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #37d6a2;
    box-shadow: 0 0 12px rgba(55,214,162,.8);
    animation: securePulse 2s ease-in-out infinite;
}

@keyframes securePulse {

    0%, 100% {
        opacity: .55;
        transform: scale(.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* =========================================================
   LOGIN SECTION
========================================================= */

.login-section {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 64px 34px;
    direction: rtl;
    background: rgba(255,255,255,.96);
}


/* =========================================================
   MOBILE BRAND
========================================================= */

.mobile-brand {
    display: none;
}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {
    margin-bottom: 29px;
    text-align: right;
    animation: formEnter .65s .08s cubic-bezier(.22,1,.36,1) both;
}

.login-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--blue-600);
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.login-header h2 {
    margin: 0;
    color: var(--text-900);
    font-size: clamp( 27px, 3vw, 34px );
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -.7px;
}

.login-header p {
    margin: 6px 0 0;
    color: var(--text-400);
    font-size: 11px;
    line-height: 1.8;
    font-weight: 500;
}

@keyframes formEnter {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   ERROR
========================================================= */

.login-error-summary {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    color: var(--danger);
    background: #fff5f6;
    border: 1px solid #ffd7dd;
    border-radius: 11px;
    font-size: 10px;
    line-height: 1.7;
}

    .login-error-summary:not(:empty) {
        display: block;
        animation: errorIn .35s ease both;
    }

    .login-error-summary ul {
        margin: 0;
        padding: 0 18px 0 0;
    }

@keyframes errorIn {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   FORM FIELD
========================================================= */

.login-form {
    width: 100%;
}

.form-field {
    width: 100%;
    margin-bottom: 19px;
}

    .form-field > label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-700);
        font-size: 10px;
        font-weight: 800;
    }


/* =========================================================
   FIELD CONTROL
========================================================= */

.field-control {
    position: relative;
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .field-control:hover {
        border-color: #ccd7e4;
    }

    .field-control:focus-within {
        background: #fff;
        border-color: #72a9f4;
        box-shadow: 0 0 0 4px rgba(23,105,232,.065), 0 8px 25px rgba(23,105,232,.045);
        transform: translateY(-1px);
    }

.field-icon {
    width: 51px;
    height: 100%;
    flex: 0 0 51px;
    display: grid;
    place-items: center;
    color: #8291a5;
}

    .field-icon svg {
        width: 20px;
        height: 20px;
    }

.field-control input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 2px 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-900);
    font-size: 13px;
    font-weight: 600;
    direction: rtl;
}

    .field-control input::placeholder {
        color: #a0acbb;
        font-weight: 500;
    }

    .field-control input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #fff inset;
        -webkit-text-fill-color: var(--text-900);
    }


/* =========================================================
   PASSWORD
========================================================= */

.password-toggle {
    width: 49px;
    height: 100%;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #8795a8;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

    .password-toggle:hover {
        color: var(--blue-600);
    }

    .password-toggle:active {
        transform: scale(.9);
    }

    .password-toggle svg {
        width: 20px;
        height: 20px;
    }


/* =========================================================
   PASSWORD STATUS
========================================================= */

.password-status {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
    margin-top: 4px;
    color: #a0aaba;
    font-size: 7px;
    font-weight: 600;
    opacity: .85;
}

.password-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #aab4c1;
    transition: background .2s ease, box-shadow .2s ease;
}

.password-status.is-visible {
    color: var(--blue-600);
}

    .password-status.is-visible
    .password-status-dot {
        background: var(--blue-600);
        box-shadow: 0 0 8px rgba(23,105,232,.4);
    }


/* =========================================================
   FIELD ERROR
========================================================= */

.field-error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: var(--danger);
    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   OPTIONS
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    margin: -1px 0 20px;
}

.remember-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #77869a;
    font-size: 9px;
    font-weight: 600;
}

    .remember-option input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

.custom-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: #fff;
    border: 1px solid #ccd6e1;
    border-radius: 5px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.remember-option input:checked + .custom-checkbox {
    background: var(--blue-600);
    border-color: var(--blue-600);
    box-shadow: 0 4px 10px rgba(23,105,232,.18);
}

    .remember-option input:checked + .custom-checkbox::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 6px;
        width: 5px;
        height: 9px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }


/* =========================================================
   SUBMIT
========================================================= */

.login-submit {
    position: relative;
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient( 135deg, #075fe9 0%, #1769e8 52%, #4b9bff 100% );
    border-radius: 14px;
    box-shadow: 0 13px 30px rgba(23,105,232,.22);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

    .login-submit::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 65%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.23), transparent );
        transform: skewX(-20deg);
        transition: right .7s ease;
    }

    .login-submit:hover::before {
        right: 140%;
    }

    .login-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(23,105,232,.28);
    }

    .login-submit:active {
        transform: translateY(0);
    }

    .login-submit:disabled {
        opacity: .65;
        cursor: wait;
        transform: none;
    }

.submit-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.submit-arrow {
    width: 17px;
    height: 17px;
    transition: transform .18s ease;
}

.login-submit:hover
.submit-arrow {
    transform: translateX(-3px);
}

.submit-loading {
    position: relative;
    z-index: 2;
    display: none;
    align-items: center;
    gap: 8px;
}

.login-submit.is-loading
.submit-content {
    display: none;
}

.login-submit.is-loading
.submit-loading {
    display: inline-flex;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loginSpin .7s linear infinite;
}

@keyframes loginSpin {

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SECURITY
========================================================= */

.login-security {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 19px;
    color: #8d9aaa;
    font-size: 8px;
    font-weight: 600;
}

.security-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    color: var(--success);
    background: #edf9f4;
    border-radius: 6px;
}

    .security-icon svg {
        width: 12px;
        height: 12px;
    }


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 15px;
    margin-top: 4px;
    border-top: 1px solid #edf1f5;
    color: #a9b3c0;
    font-family: Arial, sans-serif;
    font-size: 7px;
    direction: ltr;
}

    .login-footer i {
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: #ccd3dc;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .login-page {
        padding: 20px;
    }

    .login-container {
        width: min( 780px, 100% );
        min-height: 570px;
        grid-template-columns: .9fr .9fr;
        border-radius: 25px;
    }

    .brand-section {
        padding: 40px;
    }

    .brand-main {
        padding: 30px 0;
    }

        .brand-main h1 {
            font-size: 34px;
        }

        .brand-main p {
            font-size: 11px;
        }

    .brand-stat {
        min-width: 150px;
    }

    .login-section {
        padding: 40px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .login-page {
        min-height: 100dvh;
        align-items: stretch;
        padding: 0;
    }

    .login-container {
        width: 100%;
        min-height: 100dvh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 0;
        background: #f7faff;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .brand-section {
        position: relative;
        min-height: 245px;
        flex: 0 0 245px;
        padding: 25px 22px 23px;
        justify-content: flex-start;
        border-radius: 0 0 30px 30px;
    }

        .brand-section::before {
            width: 300px;
            height: 300px;
            top: -205px;
            left: -120px;
        }

        .brand-section::after {
            width: 220px;
            height: 220px;
            right: -110px;
            bottom: -150px;
        }

    .brand-top {
        gap: 10px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
    }

        .brand-logo img {
            padding: 6px;
        }

        .brand-logo span {
            font-size: 23px;
        }

    .brand-meta strong {
        font-size: 13px;
    }

    .brand-meta span {
        font-size: 5.5px;
        letter-spacing: 1.2px;
    }

    .brand-main {
        max-width: none;
        margin: auto 0 0;
        padding: 20px 0 0;
    }

    .brand-eyebrow {
        font-size: 6.5px;
        letter-spacing: 1.5px;
    }

    .brand-main h1 {
        margin-top: 8px;
        font-size: 27px;
        line-height: 1.28;
        letter-spacing: -.5px;
    }

    .brand-main p {
        display: none;
    }

    .brand-stats {
        display: none;
    }

    .brand-bottom {
        display: none;
    }

    .login-section {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 27px 22px calc( 22px + env(safe-area-inset-bottom) );
        background: #f7faff;
        border-radius: 30px 30px 0 0;
        margin-top: -20px;
        position: relative;
        z-index: 5;
    }

    .mobile-brand {
        display: none;
    }

    .login-header {
        margin-bottom: 23px;
        text-align: right;
    }

    .login-kicker {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .login-header h2 {
        font-size: 25px;
    }

    .login-header p {
        margin-top: 4px;
        font-size: 9.5px;
    }

    .form-field {
        margin-bottom: 17px;
    }

        .form-field > label {
            margin-bottom: 7px;
            font-size: 10px;
        }

    .field-control {
        height: 55px;
        border-radius: 13px;
        background: #fff;
    }

        .field-control input {
            font-size: 13px;
        }

    .login-options {
        margin-bottom: 18px;
    }

    .login-submit {
        height: 55px;
        border-radius: 13px;
        font-size: 12px;
    }

    .login-security {
        margin-top: 16px;
    }

    .login-footer {
        padding-top: 13px;
        font-size: 6.5px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .brand-section {
        min-height: 215px;
        flex-basis: 215px;
        padding: 20px 18px 20px;
        border-radius: 0 0 26px 26px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .brand-meta strong {
        font-size: 12px;
    }

    .brand-main {
        padding-top: 14px;
    }

        .brand-main h1 {
            font-size: 24px;
        }

    .login-section {
        padding: 24px 18px calc( 18px + env(safe-area-inset-bottom) );
        margin-top: -16px;
    }

    .login-header {
        margin-bottom: 20px;
    }

        .login-header h2 {
            font-size: 23px;
        }

        .login-header p {
            font-size: 9px;
        }

    .field-control {
        height: 52px;
    }

    .login-submit {
        height: 52px;
    }
}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 340px) {

    .brand-section {
        min-height: 195px;
        flex-basis: 195px;
    }

    .brand-main h1 {
        font-size: 22px;
    }

    .login-section {
        padding: 21px 15px calc( 15px + env(safe-area-inset-bottom) );
    }

    .login-header h2 {
        font-size: 21px;
    }

    .field-control {
        height: 50px;
    }

    .login-submit {
        height: 50px;
    }

    .login-footer {
        font-size: 6px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media ( max-height: 620px ) and ( orientation: landscape ) and ( max-width: 900px ) {

    .login-container {
        min-height: 100dvh;
    }

    .brand-section {
        min-height: 180px;
        flex-basis: 180px;
    }

    .brand-main {
        padding-top: 12px;
    }

        .brand-main h1 {
            font-size: 23px;
        }

    .login-section {
        padding: 22px 30px;
    }

    .login-header {
        margin-bottom: 14px;
    }

    .form-field {
        margin-bottom: 10px;
    }

    .field-control {
        height: 47px;
    }

    .login-submit {
        height: 47px;
    }

    .login-security {
        display: none;
    }

    .login-footer {
        padding-top: 8px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.field-control input:focus-visible,
.password-toggle:focus-visible,
.login-submit:focus-visible,
.remember-option:focus-within
.custom-checkbox {
    outline: 2px solid rgba(23,105,232,.28);
    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
