

/* =========================================================
   ROOT
========================================================= */

:root {

    --amber: #E59805;
    --amber-2: #ffb82e;

    --bg: #111315;
    --bg2: #17191c;

    --white: #ffffff;
    --text: #f5f5f5;
    --muted: #8f959d;

    --glass: rgba(255,255,255,0.055);
    --border: rgba(255,255,255,0.095);

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {

    font-family: 'Montserrat', sans-serif;

    color: var(--text);

    background:

        radial-gradient(
            circle at 10% 15%,
            rgba(229,152,5,0.12),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 85%,
            rgba(255,184,46,0.07),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            var(--bg),
            var(--bg2)
        );

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.bg-glow-1 {

    position: fixed;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        rgba(229,152,5,0.055);

    filter: blur(70px);

    top: -220px;
    left: -180px;

    pointer-events: none;
}

.bg-glow-2 {

    position: fixed;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background:
        rgba(255,184,46,0.035);

    filter: blur(70px);

    bottom: -180px;
    right: -120px;

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.login-container {

    position: relative;

    width: 100%;
    max-width: 1050px;

    min-height: 620px;

    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    background:
        rgba(255,255,255,0.045);

    border:
        1px solid var(--border);

    border-radius: 30px;

    overflow: hidden;

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    box-shadow:

        0 40px 100px
        rgba(0,0,0,0.55),

        inset 0 1px 0
        rgba(255,255,255,0.055);
}


/* =========================================================
   BRAND PANEL
========================================================= */

.brand-panel {

    position: relative;

    padding: 52px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:

        linear-gradient(
            145deg,
            rgba(229,152,5,0.095),
            rgba(255,255,255,0.015)
        );

    border-right:
        1px solid rgba(255,255,255,0.07);

    overflow: hidden;
}

.brand-panel::before {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -260px;
    bottom: -280px;

    border-radius: 50%;

    border:
        1px solid rgba(229,152,5,0.16);

    box-shadow:

        0 0 0 45px
        rgba(229,152,5,0.025),

        0 0 0 90px
        rgba(229,152,5,0.018);
}

.brand-panel::after {

    content: "";

    position: absolute;

    width: 200px;
    height: 1px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--amber),
            transparent
        );

    top: 155px;
    left: -30px;

    transform:
        rotate(-35deg);

    opacity: 0.45;
}


/* =========================================================
   BRAND
========================================================= */

.brand-top {

    position: relative;

    z-index: 2;

    text-align: center;
}

.brand-logo {

    width: 100%;

    max-width: 500px;

    margin: 0 auto 24px;
}

.brand-logo img {

    width: 100%;

    height: auto;

    max-height: 120px;

    object-fit: contain;

    display: block;
}

.brand-description {

    margin: 20px auto 0;

    max-width: 390px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.9;

    font-weight: 500;
}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel {

    padding: 55px 58px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:
        rgba(10,12,14,0.25);
}


/* =========================================================
   HEADER
========================================================= */

.login-header {

    margin-bottom: 34px;
}

.login-header h2 {

    font-size: 30px;

    line-height: 1.15;

    letter-spacing: -0.8px;

    font-weight: 800;
}

.login-header p {

    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

.form-group {

    margin-bottom: 20px;
}

.form-group label {

    display: block;

    margin-bottom: 9px;

    color: #c9cdd2;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.input-wrapper {

    position: relative;
}

.input-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #686f77;

    font-size: 13px;

    transition: 0.2s;

    pointer-events: none;
}

.input-wrapper input {

    width: 100%;

    height: 54px;

    padding:
        0 46px;

    border-radius: 14px;

    border:
        1px solid
        rgba(255,255,255,0.085);

    outline: none;

    background:
        rgba(0,0,0,0.20);

    color: var(--white);

    font-family: inherit;

    font-size: 12px;

    font-weight: 500;

    transition:
        all 0.25s ease;
}

.input-wrapper input::placeholder {

    color: #60666e;
}

.input-wrapper input:focus {

    border-color:
        rgba(229,152,5,0.65);

    background:
        rgba(0,0,0,0.28);

    box-shadow:
        0 0 0 3px
        rgba(229,152,5,0.07);
}

.input-wrapper:focus-within
.input-icon {

    color:
        var(--amber-2);
}


/* =========================================================
   PASSWORD
========================================================= */

.password-toggle {

    position: absolute;

    right: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    border: none;

    background: transparent;

    color: #686f77;

    cursor: pointer;

    padding: 5px;

    font-size: 13px;

    transition: 0.2s;
}

.password-toggle:hover {

    color:
        var(--amber-2);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {

    width: 100%;

    height: 54px;

    border: none;

    border-radius: 14px;

    cursor: pointer;

    color: #141414;

    background:

        linear-gradient(
            110deg,
            var(--amber),
            var(--amber-2)
        );

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    box-shadow:
        0 12px 30px
        rgba(229,152,5,0.17);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.login-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 16px 38px
        rgba(229,152,5,0.25);
}

.login-button:active {

    transform:
        translateY(0);
}

.login-button:disabled {

    cursor: not-allowed;

    opacity: 0.75;

    transform: none;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding: 12px 14px;

    margin-bottom: 18px;

    border-radius: 12px;

    background:
        rgba(239,68,68,0.07);

    border:
        1px solid
        rgba(239,68,68,0.18);

    color: #fca5a5;

    font-size: 10px;

    line-height: 1.5;
}

.error-message i {

    margin-top: 2px;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    margin-top: 28px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(255,255,255,0.065);

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.login-footer span {

    color: #646b73;

    font-size: 9px;

    font-weight: 500;
}

.secure-access {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #777e86;

    font-size: 9px;
}

.secure-access i {

    color:
        var(--amber);
}


/* =========================================================
   LOADING
========================================================= */

.loading-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    background:
        rgba(10,11,12,0.78);

    backdrop-filter:
        blur(9px);
}

.loading-overlay.show {

    display: flex;
}

.loader {

    text-align: center;
}

.spinner {

    width: 40px;
    height: 40px;

    border-radius: 50%;

    border:
        2px solid
        rgba(255,255,255,0.10);

    border-top-color:
        var(--amber-2);

    animation:
        spin 0.8s linear infinite;

    margin: auto;
}

.loader p {

    margin-top: 13px;

    color: #aeb3b9;

    font-size: 10px;

    font-weight: 600;
}

@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    body {
        padding: 20px;
    }

    .login-container {

        max-width: 720px;

        grid-template-columns: 1fr;

        min-height: auto;
    }

    .brand-panel {

        padding: 35px;

        min-height: 280px;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255,255,255,0.07);
    }

    .brand-description {

        max-width: 600px;
    }

    .login-panel {

        padding:
            40px 45px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {

        padding: 12px;

        align-items:
            flex-start;

        padding-top: 20px;

        padding-bottom: 20px;
    }

    .login-container {

        width: 100%;

        border-radius: 22px;
    }

    .brand-panel {

        min-height: 220px;

        padding:
            28px 24px;
    }

    .brand-logo {

        max-width: 220px;

        margin-bottom: 18px;
    }

    .brand-logo img {

        max-height: 80px;
    }

    .brand-description {

        margin-top: 13px;

        font-size: 10px;

        line-height: 1.7;
    }

    .login-panel {

        padding:
            32px 24px;
    }

    .login-header {

        margin-bottom: 27px;
    }

    .login-header h2 {

        font-size: 25px;
    }

    .login-header p {

        font-size: 10px;
    }

    .login-footer {

        flex-direction: column;

        gap: 10px;

        align-items:
            flex-start;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .brand-panel {

        padding:
            24px 20px;
    }

    .login-panel {

        padding:
            28px 20px;
    }

    .brand-logo {

        max-width: 190px;
    }

    .brand-logo img {

        max-height: 70px;
    }

    .login-header h2 {

        font-size: 23px;
    }

    .input-wrapper input {

        height: 50px;
    }

    .login-button {

        height: 50px;
    }
}