/* ==========================================================
   A.T.L.A.S. AUTHENTICATION LAYOUT
   ========================================================== */

:root {
    --auth-primary: #3157d5;
    --auth-primary-dark: #2545b3;
    --auth-primary-soft: #eef2ff;

    --auth-text: #172033;
    --auth-muted: #697386;

    --auth-border: #e4e8f0;
    --auth-background: #f7f9fc;
    --auth-white: #ffffff;

    --auth-success: #16845b;
    --auth-warning: #a86b00;
    --auth-danger: #c0392b;

    --auth-shadow: 0 20px 60px rgba(24, 38, 75, 0.08);

    --auth-radius: 18px;

    --auth-font: "Poppins", sans-serif;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;
    font-family: var(--auth-font);
    color: var(--auth-text);
    background: var(--auth-background);
    -webkit-font-smoothing: antialiased;
}


button,
input,
textarea,
select {
    font: inherit;
}


/* ==========================================================
   AUTH SHELL
   ========================================================== */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
}


/* ==========================================================
   BRAND PANEL
   ========================================================== */

.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100vh;
    padding: 48px 9%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #172c68 0%,
            #24469f 48%,
            #3157d5 100%
        );

    color: #ffffff;
}


.auth-brand-panel::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: -190px;
    bottom: -180px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.1);
}


.auth-brand-panel::after {
    content: "";
    position: absolute;

    width: 260px;
    height: 260px;

    left: -140px;
    bottom: 18%;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


.auth-brand {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    text-decoration: none;
}


.auth-brand__logo {
    display: block;

    width: auto;
    height: 64px;

    object-fit: contain;
}


.auth-brand__content {
    position: relative;
    z-index: 2;

    max-width: 560px;

    margin: auto 0;
}


.auth-brand__eyebrow {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;

    color: rgba(255, 255, 255, 0.7);
}


.auth-brand__content h1 {
    max-width: 500px;

    margin-bottom: 22px;

    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.035em;
}


.auth-brand__content h1 span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
}


.auth-brand__content p {
    max-width: 500px;

    font-size: 15px;
    line-height: 1.9;
    font-weight: 300;

    color: rgba(255, 255, 255, 0.78);
}


.auth-brand__footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}


.auth-brand__separator {
    opacity: 0.5;
}


/* ==========================================================
   CONTENT PANEL
   ========================================================== */

.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 48px 7%;

    background: var(--auth-background);
}


.auth-content__inner {
    width: 100%;
    max-width: 500px;
}


/* ==========================================================
   FLASH MESSAGES
   ========================================================== */

.auth-flashes {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-bottom: 24px;
}


.auth-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 13px 15px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 12px;
    line-height: 1.5;
}


.auth-alert--success {
    color: var(--auth-success);
    background: #edf9f4;
    border-color: #ccecdf;
}


.auth-alert--error,
.auth-alert--danger {
    color: var(--auth-danger);
    background: #fff1ef;
    border-color: #f3d1cc;
}


.auth-alert--warning {
    color: var(--auth-warning);
    background: #fff8e8;
    border-color: #f2dfae;
}


.auth-alert--info {
    color: var(--auth-primary);
    background: var(--auth-primary-soft);
    border-color: #d8e0ff;
}


.auth-alert__message {
    flex: 1;
}


.auth-alert__close {
    flex: 0 0 auto;

    border: 0;
    background: transparent;

    color: currentColor;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.6;

    transition: opacity 0.2s ease;
}


.auth-alert__close:hover {
    opacity: 1;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1000px) {

    .auth-shell {
        grid-template-columns: 1fr;
    }


    .auth-brand-panel {
        min-height: auto;
        padding: 32px 7%;
    }


    .auth-brand__content {
        margin: 70px 0 60px;
    }


    .auth-brand__content h1 {
        font-size: clamp(36px, 7vw, 52px);
    }


    .auth-brand__footer {
        padding-top: 10px;
    }


    .auth-content {
        min-height: 65vh;
        padding: 48px 7%;
    }
}


@media (max-width: 600px) {

    .auth-brand-panel {
        padding: 26px 22px;
    }


    .auth-brand__logo {
        height: 52px;
    }


    .auth-brand__content {
        margin: 55px 0 45px;
    }


    .auth-brand__eyebrow {
        margin-bottom: 14px;
        font-size: 9px;
    }


    .auth-brand__content h1 {
        margin-bottom: 16px;

        font-size: 36px;
        line-height: 1.1;
    }


    .auth-brand__content p {
        font-size: 13px;
        line-height: 1.8;
    }


    .auth-brand__footer {
        flex-wrap: wrap;

        font-size: 10px;
    }


    .auth-brand__separator {
        display: none;
    }


    .auth-content {
        min-height: auto;
        padding: 36px 22px 48px;
    }


    .auth-alert {
        font-size: 11px;
    }
}