* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #111827;
    background: #eef0f4;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 1.02fr) minmax(380px, 0.98fr);
    min-height: 100vh;
    overflow: hidden;
}

.auth-showcase {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding: clamp(40px, 5.4vw, 76px);
    color: #fff;
    background:
        radial-gradient(circle at 50% 38%, rgba(30, 111, 255, 0.34), transparent 29%),
        radial-gradient(circle at 26% 28%, rgba(56, 132, 255, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(5, 34, 94, 0.92), rgba(1, 16, 48, 0.98)),
        #021942;
    isolation: isolate;
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-showcase::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04)),
        repeating-linear-gradient(90deg, transparent 0 70px, rgba(91, 152, 255, 0.055) 72px 73px),
        linear-gradient(180deg, transparent 0 72%, rgba(0, 5, 20, 0.55));
    mix-blend-mode: screen;
}

.auth-showcase::after {
    background:
        linear-gradient(100deg, rgba(0, 7, 32, 0.78), transparent 30%, transparent 70%, rgba(0, 7, 32, 0.8)),
        radial-gradient(ellipse at 50% 100%, rgba(17, 102, 255, 0.28), transparent 43%);
    z-index: -1;
}

.showcase-architecture {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.78;
}

.arch {
    position: absolute;
    top: -8%;
    bottom: 14%;
    width: 34%;
    border: 1px solid rgba(78, 136, 255, 0.15);
    background: linear-gradient(90deg, rgba(0, 12, 46, 0.5), rgba(37, 99, 235, 0.18), rgba(0, 12, 46, 0.5));
    filter: blur(0.2px);
}

.arch-left {
    left: -5%;
    transform: skewX(8deg);
}

.arch-center {
    left: 34%;
    width: 30%;
    transform: perspective(500px) rotateX(6deg);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(2, 26, 76, 0.1));
}

.arch-right {
    right: -5%;
    transform: skewX(-8deg);
}

.light {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 18px rgba(64, 140, 255, 0.95);
}

.light-one {
    top: 18%;
    left: 26%;
}

.light-two {
    top: 18%;
    right: 27%;
}

.light-three {
    top: 42%;
    left: 51%;
}

.floor-line {
    position: absolute;
    left: 13%;
    right: 13%;
    bottom: 13%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.46), transparent);
}

.floor-two {
    left: 20%;
    right: 20%;
    bottom: 18%;
    opacity: 0.55;
}

.showcase-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.showcase-content h1 {
    margin: 0 0 22px;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 850;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.showcase-content h1 span {
    display: block;
    margin-top: 8px;
    color: #62a5ff;
}

.showcase-content p {
    max-width: 520px;
    margin: 0;
    color: rgba(239, 246, 255, 0.84);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(28px, 5.8vw, 76px);
    background: #f1f2f5;
}

.auth-card {
    width: min(100%, 276px);
    --login-action-width: 100%;
    --login-action-min-width: 0;
    --login-action-max-width: 276px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    box-shadow: 0 14px 25px rgba(29, 78, 216, 0.25);
}

.brand-mark img {
    display: block;
    width: 28px;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-name {
    color: #071747;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 850;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading h2 {
    margin: 0 0 8px;
    color: #16181d;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
}

.auth-heading p {
    margin: 0;
    color: #252b3a;
    font-size: 15px;
}

.message-box {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.message-error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.message-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.login-form {
    display: grid;
    gap: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    color: #2f3442;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2.4px;
    line-height: 1.35;
    text-transform: uppercase;
}

.input-line {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px solid #d8dde8;
}

.field-icon,
.eye-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: #737b8c;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.input-line input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 44px 10px 14px;
    color: #111827;
    background: transparent;
    font-size: 16px;
}

.input-line input::placeholder {
    color: #a8afbb;
}

.input-line:focus-within {
    border-color: #2563eb;
    box-shadow: 0 1px 0 #2563eb;
}

.password-toggle {
    position: absolute;
    right: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    outline: 0;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    justify-self: center;
    width: var(--login-action-width);
    min-width: var(--login-action-min-width);
    max-width: var(--login-action-max-width);
    margin: 0 0 2px;
}

.remember-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #20283a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.remember-control input {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #bfc8d9;
    border-radius: 6px;
    accent-color: #1d4ed8;
}

.forgot-link {
    color: #0f4bdc;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.forgot-link:hover,
.forgot-link:focus-visible {
    color: #0b37a8;
    text-decoration: underline;
    outline: 0;
}

.login-submit {
    justify-self: center;
    width: var(--login-action-width);
    min-width: var(--login-action-min-width);
    max-width: var(--login-action-max-width);
    min-height: 35px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(90deg, #1554d1, #2768f5);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: linear-gradient(90deg, #1044ac, #1f5fe9);
    outline: 0;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: var(--login-action-width);
    min-width: var(--login-action-min-width);
    max-width: var(--login-action-max-width);
    margin-top: 58px;
    margin-right: auto;
    margin-left: auto;
}

.auth-links a {
    color: #6d7382;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.auth-links a:hover,
.auth-links a:focus-visible {
    color: #1d4ed8;
    outline: 0;
}

.auth-links span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #c0c7d6;
}

@media (max-width: 1180px) {
    .auth-showcase {
        padding: 44px;
    }

    .showcase-content h1 {
        font-size: 42px;
    }

    .showcase-content p {
        font-size: 16px;
    }

    .auth-panel {
        padding: 44px 38px;
    }

    .auth-card {
        width: min(100%, 276px);
    }
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-showcase {
        min-height: 310px;
        padding: 42px 32px;
    }

    .auth-panel {
        min-height: auto;
        padding: 42px 24px 32px;
    }

    .auth-card {
        width: min(100%, 276px);
    }

    .auth-links {
        margin-top: 42px;
    }
}

@media (max-width: 640px) {
    .auth-showcase {
        min-height: 260px;
        padding: 30px 22px;
    }

    .showcase-content h1 {
        margin-bottom: 14px;
        font-size: 29px;
    }

    .showcase-content p {
        font-size: 14px;
        line-height: 1.45;
    }

    .auth-panel {
        padding: 30px 20px 26px;
    }

    .brand-lockup {
        margin-bottom: 18px;
    }

    .auth-heading h2 {
        font-size: 29px;
    }

    .auth-heading p {
        font-size: 15px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-mark img {
        width: 31px;
    }

    .brand-name {
        font-size: 21px;
    }

    .field-group label {
        letter-spacing: 2px;
    }

    .login-submit {
        min-height: 35px;
    }

    .auth-links {
        gap: 8px;
        margin-top: 34px;
    }

    .auth-links span {
        display: none;
    }
}

@media (max-width: 420px) {
    .auth-showcase {
        min-height: 230px;
    }

    .showcase-content h1 {
        font-size: 25px;
    }

    .showcase-content p {
        font-size: 13px;
    }

    .auth-heading {
        margin-bottom: 24px;
    }

    .login-form {
        gap: 18px;
    }

    .input-line input {
        font-size: 15px;
    }
}
