﻿/* =========================================================
   CONTRACTING ERP LOGIN
   Complete clean stylesheet
========================================================= */

:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1746c7;
    --auth-primary-light: #4f8cff;
    --auth-secondary: #0f172a;
    --auth-navy: #071b4d;
    --auth-navy-light: #0c3979;
    --auth-cyan: #22d3ee;
    --auth-cyan-bright: #40e5ff;
    --auth-success: #10b981;
    --auth-danger: #dc3545;
    --auth-background: #eef5ff;
    --auth-text: #172033;
    --auth-muted: #667085;
    --auth-border: #d8e1ee;
    --auth-white: #ffffff;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

/* =========================================================
   PAGE BACKGROUND
========================================================= */

.auth-body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;

    color: var(--auth-text);

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(39, 143, 255, 0.2),
            transparent 32%
        ),
        radial-gradient(
            circle at 91% 88%,
            rgba(34, 211, 238, 0.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #eaf3ff 0%,
            #f8fbff 50%,
            #eef8ff 100%
        );

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.auth-body::before {
    top: -230px;
    left: -210px;
    width: 680px;
    height: 680px;

    background:
        radial-gradient(
            circle,
            rgba(40, 150, 255, 0.22),
            transparent 69%
        );

    animation: authFloatOne 18s ease-in-out infinite alternate;
}

.auth-body::after {
    right: -190px;
    bottom: -240px;
    width: 680px;
    height: 680px;

    background:
        radial-gradient(
            circle,
            rgba(0, 186, 255, 0.15),
            transparent 70%
        );

    animation: authFloatTwo 20s ease-in-out infinite alternate;
}

.auth-page {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 24px;
}

.auth-grid-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;

    pointer-events: none;
    opacity: 0.28;

    background-image:
        linear-gradient(
            rgba(15, 23, 42, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.035) 1px,
            transparent 1px
        );

    background-size: 36px 36px;
}

.auth-background-decoration {
    display: none;
}

/* =========================================================
   MAIN LOGIN CARD
========================================================= */

.login-page-container {
    position: relative;
    z-index: 5;
    width: min(1480px, 100%);
    margin: 0 auto;
    min-height: 760px; /* Reduce overall height */
    max-height: 92vh; /* Prevent overflow */
    animation: loginEntrance 0.55s ease-out;
}

.login-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(470px, 0.92fr);

    width: 100%;
    min-height: 760px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.96);

    border:
        1px solid
        rgba(255, 255, 255, 0.85);

    border-radius: 30px;

    box-shadow:
        0 36px 100px rgba(15, 23, 42, 0.18),
        0 12px 34px rgba(37, 99, 235, 0.09);

    backdrop-filter: blur(20px);
}

/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.login-brand-panel {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    color: var(--auth-white);

    background:
        radial-gradient(
            circle at 70% 18%,
            rgba(22, 153, 255, 0.24),
            transparent 31%
        ),
        radial-gradient(
            circle at 84% 80%,
            rgba(0, 209, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #04143f 0%,
            #092d70 48%,
            #07618f 100%
        );
}

.login-brand-panel::before {
    content: "";
    position: absolute;

    top: -220px;
    right: -230px;

    width: 680px;
    height: 680px;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 50%;
}

.login-brand-panel::after {
    content: "";
    position: absolute;

    right: -100px;
    bottom: -210px;

    width: 480px;
    height: 480px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(18, 210, 247, 0.35),
            transparent 68%
        );
}

.brand-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05),
            transparent 44%
        );
}

.brand-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex: 1;
    flex-direction: column;

    width: 100%;
    min-height: 0;

    padding: 32px 52px 34px;
}

/* =========================================================
   LARGE LOGO
========================================================= */

.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin-bottom: 18px;
}

.brand-logo-surface {
    position: relative;

    width: 100%;
    max-width: 510px;
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.brand-logo-surface::before {
    content: "";
    position: absolute;

    width: 76%;
    height: 66%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(23, 178, 255, 0.28),
            transparent 70%
        );

    filter: blur(8px);
}

.hero-logo {
    position: relative;
    z-index: 2;

    display: block;

    width: auto;
    max-width: 100%;
    height: 295px;

    object-fit: contain;
    object-position: center;

    filter:
        brightness(1.34)
        contrast(1.28)
        saturate(1.3)
        drop-shadow(
            0 0 18px
            rgba(31, 179, 255, 0.46)
        )
        drop-shadow(
            0 18px 28px
            rgba(0, 0, 0, 0.3)
        );

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.025);

    filter:
        brightness(1.42)
        contrast(1.3)
        saturate(1.38)
        drop-shadow(
            0 0 25px
            rgba(42, 200, 255, 0.6)
        )
        drop-shadow(
            0 20px 30px
            rgba(0, 0, 0, 0.32)
        );
}

/* Old logo classes retained safely */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
}

.brand-logo-wrapper,
.brand-text {
    display: none;
}

/* =========================================================
   LEFT MESSAGE
========================================================= */

.brand-message {
    width: 100%;
    max-width: 680px;
    margin-top: 0;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 22px;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #008cff,
            #1cd7ef
        );

    border:
        1px solid
        rgba(114, 232, 255, 0.65);

    border-radius: 999px;

    box-shadow:
        0 12px 30px
        rgba(0, 180, 255, 0.34);

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.product-badge::before {
    content: "";
    width: 7px;
    height: 7px;

    background: #dffcff;
    border-radius: 50%;

    box-shadow:
        0 0 10px
        rgba(214, 252, 255, 0.95);
}

.brand-message h1,
.erp-title {
    margin: 25px 0 13px;

    color: #ffffff;

    font-size: clamp(3rem, 4.3vw, 4.5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;

    text-shadow:
        0 9px 22px
        rgba(0, 0, 0, 0.23);
}

.brand-message h1 span,
.erp-title span {
    color: var(--auth-cyan-bright);

    text-shadow:
        0 0 20px
        rgba(47, 220, 255, 0.3);
}

.brand-message p {
    max-width: 650px;
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 1.04rem;
    font-weight: 450;
    line-height: 1.7;
}

/* =========================================================
   MODULE CARDS
========================================================= */

.module-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
    width: 100%;

    margin-top: 30px;
}

.module-item {
    position: relative;

    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 62px;

    gap: 12px;
    padding: 13px 16px;

    overflow: hidden;

    color: rgba(255, 255, 255, 0.95);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.045)
        );

    border:
        1px solid
        rgba(64, 216, 255, 0.3);

    border-radius: 15px;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.06);

    font-size: 0.9rem;
    font-weight: 650;

    backdrop-filter: blur(11px);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.module-item::before {
    content: "";
    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.09),
            transparent
        );

    transform: skewX(-20deg);
    transition: left 0.45s ease;
}

.module-item:hover {
    transform: translateY(-3px);

    background:
        rgba(24, 176, 228, 0.18);

    border-color:
        rgba(83, 226, 255, 0.72);

    box-shadow:
        0 13px 30px
        rgba(0, 24, 74, 0.22);
}

.module-item:hover::before {
    left: 145%;
}

.module-item i {
    flex: 0 0 auto;

    color: #4fe6ff;
    font-size: 1.25rem;

    filter:
        drop-shadow(
            0 0 8px
            rgba(60, 225, 255, 0.35)
        );
}

.module-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Optional old illustration classes */

.construction-illustration,
.construction-scene {
    display: none;
}

/* =========================================================
   LEFT FOOTER
========================================================= */

.brand-footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 17px 48px;

    color: rgba(255, 255, 255, 0.58);

    background:
        rgba(1, 12, 41, 0.2);

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    font-size: 0.74rem;
}

.brand-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* =========================================================
   RIGHT FORM PANEL
========================================================= */

.login-form-panel {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(37, 99, 235, 0.055),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}

.login-form-panel::before {
    content: "";
    position: absolute;

    top: -100px;
    right: -100px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(76, 160, 255, 0.07),
            transparent 70%
        );

    pointer-events: none;
}

.mobile-brand {
    display: none;
}

.login-form-wrapper {
    position: relative;
    z-index: 2;
    width: min( 590px, calc(100% - 70px) );
     /* margin: auto;*/
     margin-left: 20px;
    padding-top: 55px; /* move form upward */
    padding-bottom: 30px;
    padding-left: 10px;
    padding-right: 0;
}

/* =========================================================
   FORM HEADER
========================================================= */

.login-header {
    display: flex;
    align-items: flex-start;

    gap: 17px;
    margin-bottom: 18px;
}

.login-icon {
    flex: 0 0 auto;

    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--auth-primary);

    background:
        linear-gradient(
            145deg,
            #f2f7ff,
            #dceaff
        );

    border: 1px solid #d7e7ff;
    border-radius: 18px;

    box-shadow:
        0 9px 22px
        rgba(37, 99, 235, 0.09);

    font-size: 1.55rem;
}

.welcome-label {
    display: block;

    margin-bottom: 5px;

    color: var(--auth-primary);

    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.login-header h2 {
    margin: 0;

    color: var(--auth-secondary);

    font-size: clamp(1.65rem, 2.1vw, 2.05rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.login-header p {
    margin: 9px 0 0;

    color: var(--auth-muted);

    font-size: 0.92rem;
    line-height: 1.55;
}

/* =========================================================
   FORM
========================================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.login-validation-summary:empty,
.login-validation-summary.validation-summary-valid {
    display: none;
}

.login-validation-summary {
    display: block;
    margin: 0 0 14px;
    padding: 12px 15px;
    color: #b42318;
    background: #fff1f1;
    border: 1px solid #f4b4b4;
    border-radius: 12px;
    font-size: 0.82rem;
}

.login-validation-summary.validation-summary-valid,
.login-validation-summary:empty {
    display: none;
}

.login-validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.validation-message {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-size: 0.76rem;
}

    .validation-message:empty {
        display: none;
    }

.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #dc3545;
}
.field-validation-valid {
    display: none;
}

.field-validation-error {
    display: block;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 8px;

    color: #344054;

    font-size: 0.85rem;
    font-weight: 700;
}

.modern-input-group {
    position: relative;
}

.modern-input-icon {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #8291ab;

    font-size: 1rem;

    transform: translateY(-50%);
    pointer-events: none;
}

.modern-form-control {
    width: 100%;
    min-height: 58px;

    padding:
        12px 48px;

    color: var(--auth-text);

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid
        var(--auth-border);

    border-radius: 15px;

    font-size: 0.94rem;

    box-shadow:
        0 2px 8px
        rgba(15, 23, 42, 0.018);

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

select.modern-form-control {
    padding-right: 45px;
    cursor: pointer;
}

.modern-form-control::placeholder {
    color: #a5b0c4;
}

.modern-form-control:hover {
    border-color: #b2c2d9;
}

.modern-form-control:focus {
    border-color: #76a3ff;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.1),
        0 8px 18px
        rgba(37, 99, 235, 0.045);
}

.password-control {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    z-index: 3;

    top: 50%;
    right: 10px;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #7a879b;

    background: transparent;
    border: 0;
    border-radius: 10px;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

.password-toggle:hover {
    color: var(--auth-primary);
    background: #eef5ff;
}

.validation-message {
    margin-top: 6px;
    color: var(--auth-danger);
    font-size: 0.76rem;
}

.field-validation-valid {
    display: none;
}

/* =========================================================
   OPTIONS
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.modern-checkbox {
    display: inline-flex;
    align-items: center;

    gap: 8px;
    min-height: auto;
    padding-left: 0;
}

.modern-checkbox .form-check-input {
    position: static;

    width: 18px;
    height: 18px;

    margin: 0;

    border-color: #aebbcf;
    border-radius: 5px;

    cursor: pointer;
}

.modern-checkbox .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.modern-checkbox .form-check-label {
    color: #475467;
    font-size: 0.81rem;
    cursor: pointer;
}

.secure-session {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--auth-success);

    font-size: 0.74rem;
    font-weight: 750;
}

/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit-button {
    position: relative;

    display: block;

    width: 100%;
    height: 59px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            100deg,
            #155cf1 0%,
            #287af9 46%,
            #06b9e9 100%
        );

    border: 0;
    border-radius: 15px;

    box-shadow:
        0 17px 30px
        rgba(32, 104, 246, 0.3);

    font-size: 1.08rem;
    font-weight: 780;
    letter-spacing: 0.01em;

    cursor: pointer;

    transition:
        transform 0.17s ease,
        box-shadow 0.17s ease,
        filter 0.17s ease;
}

.login-submit-button::before {
    content: "";
    position: absolute;

    top: 0;
    left: -120%;

    width: 78%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    transform: skewX(-24deg);

    transition: left 0.55s ease;
}

.login-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 21px 38px
        rgba(32, 104, 246, 0.36);

    filter: saturate(1.1);
}

.login-submit-button:hover::before {
    left: 145%;
}

.login-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-submit-button:disabled {
    cursor: wait;
    opacity: 0.88;
}

.button-normal-content,
.button-loading-content {
    position: relative;
    z-index: 2;

    align-items: center;
    justify-content: center;

    gap: 11px;
}

.button-normal-content {
    display: flex;
}

.button-loading-content {
    display: none;
}

.login-submit-button.is-loading
.button-normal-content {
    display: none;
}

.login-submit-button.is-loading
.button-loading-content {
    display: flex;
}

/* =========================================================
   SECURITY / FOOTER
========================================================= */

.login-security {
    margin-top: 23px;
    padding-top: 19px;

    color: #7b8799;

    border-top:
        1px solid
        #e8edf5;

    font-size: 0.75rem;
}

.login-security > div {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.login-security i {
    color: var(--auth-success);
}

.login-footer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 17px 28px;

    color: #98a2b3;

    border-top:
        1px solid
        #edf1f6;

    font-size: 0.72rem;
}

.login-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer a {
    color: #7c899f;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--auth-primary);
}

/* =========================================================
   SHORT DESKTOP SCREEN
========================================================= */

@media (min-width: 861px) and (max-height: 880px) {
    .auth-page {
        padding: 14px 22px;
    }

    .login-card {
        min-height: 705px;
    }

    .brand-content {
        padding:
            19px 38px 21px;
    }

    .brand-logo-surface {
        height: 235px;
        margin-bottom: 8px;
    }

    .hero-logo {
        height: 228px;
        max-width: 410px;
    }

    .product-badge {
        padding: 7px 17px;
        font-size: 0.72rem;
    }

    .brand-message h1,
    .erp-title {
        margin: 17px 0 10px;
        font-size: 3rem;
    }

    .brand-message p {
        font-size: 0.91rem;
        line-height: 1.5;
    }

    .module-list {
        gap: 9px;
        margin-top: 18px;
    }

    .module-item {
        min-height: 50px;
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .module-item i {
        font-size: 1.03rem;
    }

    .login-form-wrapper {
        padding: 24px 0;
    }

    .login-header {
        gap: 13px;
        margin-bottom: 18px;
    }

    .login-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .login-header h2 {
        font-size: 1.67rem;
    }

    .login-form {
        gap: 14px;
    }

    .modern-form-control {
        min-height: 50px;
    }

    .login-submit-button {
        height: 52px;
        font-size: 1rem;
    }
}

/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1200px) and (min-width: 861px) {
    .auth-page {
        padding: 18px;
    }

    .login-page-container {
        width: min(1160px, 100%);
    }

    .login-card {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(410px, 0.96fr);
    }

    .brand-content {
        padding-right: 30px;
        padding-left: 30px;
    }

    .brand-logo-surface {
        height: 255px;
    }

    .hero-logo {
        height: 245px;
        max-width: 430px;
    }

    .brand-message h1,
    .erp-title {
        font-size: 3.15rem;
    }

    .module-list {
        gap: 9px;
    }

    .module-item {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 0.8rem;
    }

    .login-form-wrapper {
        width:
            min(
                500px,
                calc(100% - 54px)
            );
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 860px) {
    .auth-page {
        align-items: flex-start;
        padding: 20px;
    }

    .login-page-container {
        width: min(570px, 100%);
        margin: 0 auto;
    }

    .login-card {
        display: block;

        width: 100%;
        min-height: 0;

        border-radius: 25px;
    }

    .login-brand-panel {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;

        gap: 13px;
        padding: 21px 27px;

        color: #ffffff;

        background:
            radial-gradient(
                circle at 90% 20%,
                rgba(38, 205, 255, 0.24),
                transparent 30%
            ),
            linear-gradient(
                135deg,
                var(--auth-navy),
                #0b5d92
            );
    }

    .mobile-brand img {
        width: 58px;
        height: 58px;

        object-fit: contain;

        filter:
            brightness(1.3)
            contrast(1.2)
            drop-shadow(
                0 0 10px
                rgba(73, 211, 255, 0.35)
            );
    }

    .mobile-brand div {
        display: flex;
        flex-direction: column;
    }

    .mobile-brand strong {
        font-size: 1.02rem;
        letter-spacing: 0.085em;
    }

    .mobile-brand small {
        margin-top: 2px;
        color: rgba(255, 255, 255, 0.67);
    }

    .login-form-wrapper {
        width: auto;
        margin: 0;
        padding: 36px 30px 32px;
    }

    .login-header h2 {
        font-size: 1.55rem;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .auth-page {
        min-height: 100vh;
        padding: 0;
    }

    .login-page-container {
        width: 100%;
        margin: 0;
    }

    .login-card {
        width: 100%;
        min-height: 100vh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .mobile-brand {
        padding: 18px 20px;
    }

    .mobile-brand img {
        width: 50px;
        height: 50px;
    }

    .login-form-wrapper {
        padding: 29px 20px 24px;
    }

    .login-header {
        gap: 12px;
        margin-bottom: 23px;
    }

    .login-icon {
        width: 46px;
        height: 46px;

        border-radius: 13px;
        font-size: 1.24rem;
    }

    .welcome-label {
        font-size: 0.7rem;
    }

    .login-header h2 {
        font-size: 1.35rem;
    }

    .login-header p {
        margin-top: 6px;
        font-size: 0.82rem;
    }

    .login-form {
        gap: 16px;
    }

    .modern-form-control {
        min-height: 52px;
        padding-left: 45px;
        font-size: 0.88rem;
    }

    .modern-input-icon {
        left: 15px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;
    }

    .login-submit-button {
        height: 54px;
        font-size: 0.98rem;
    }

    .login-footer {
        align-items: center;
        flex-direction: column;

        text-align: center;
    }
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes loginEntrance {
    from {
        opacity: 0;
        transform:
            translateY(18px)
            scale(0.988);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes authFloatOne {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(55px);
    }
}

@keyframes authFloatTwo {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-48px);
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}