@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --admin-blue: #3b55e6;
    --admin-blue-dark: #2f49dc;
    --admin-text: #354052;
    --admin-muted: #9aa5b5;
    --admin-line: #e5eaf2;
    --admin-green: #25c296;
    --admin-red: #ef4444;
    --admin-shadow: 0 18px 35px rgba(59, 85, 230, .22);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: #ffffff;
    color: var(--admin-text);
}

.auth-wrapper {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.auth-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 45% 55%;
    background: #ffffff;
}

.auth-panel {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    height: 100vh;
    padding: clamp(34px, 6vw, 84px) clamp(34px, 8vw, 112px) 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.auth-card {
    width: min(100%, 355px);
    max-height: calc(100vh - 92px);
    overflow: hidden;
}

.auth-kicker {
    margin-bottom: 38px;
}

.auth-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.auth-card h1 {
    max-width: 320px;
    color: var(--admin-text);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.auth-card > p {
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 34px;
}

.alert-error {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #be123c;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    color: #9aa5b5;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-wrapper {
    height: 46px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 30px rgba(148, 163, 184, .1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.input-wrapper:focus-within {
    border-color: var(--admin-green);
    box-shadow: 0 12px 30px rgba(37, 194, 150, .16);
}

.input-wrapper input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 600;
}

.input-icon,
.password-toggle {
    width: 28px;
    height: 28px;
    color: var(--admin-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.input-icon svg,
.password-toggle svg,
.login-info svg,
.btn-login svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle {
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.password-toggle:hover {
    background: #f5f7fb;
}

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

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

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 28px;
}

.form-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b0b8c5;
    font-size: 11px;
    font-weight: 600;
}

.form-options input {
    width: 12px;
    height: 12px;
    accent-color: var(--admin-green);
}

.form-options a {
    color: var(--admin-blue);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: var(--admin-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--admin-shadow);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn-login:hover {
    background: var(--admin-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(59, 85, 230, .26);
}

.login-info {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    color: #a1acbc;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

.login-info span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.login-info strong {
    color: #768295;
    font-weight: 800;
}

.info-copy-btn {
    width: auto;
    min-height: 20px;
    border: 0;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--admin-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    flex: 0 0 auto;
    transition: background .16s ease, color .16s ease;
}

.info-copy-btn:hover,
.info-copy-btn.copied {
    background: var(--admin-blue);
    color: #ffffff;
}

.info-copy-btn span {
    color: inherit;
    font-size: 9px;
    font-weight: 800;
}

footer {
    position: absolute;
    left: clamp(34px, 8vw, 112px);
    bottom: 34px;
    color: #b0b8c5;
    font-size: 12px;
    font-weight: 600;
}

.auth-visual {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    height: 100vh;
    margin-left: -82px;
    padding: 74px clamp(40px, 7vw, 104px) 48px 150px;
    overflow: hidden;
    color: #ffffff;
    background: var(--admin-blue);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 23% 100%, 0 28%);
}

.auth-visual::before {
    content: "";
    position: absolute;
    left: 5%;
    top: 13%;
    width: 210px;
    height: 210px;
    border: 44px solid rgba(255, 255, 255, .06);
    border-radius: 58px;
    transform: rotate(34deg);
}

.auth-visual::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 42px;
    width: 210px;
    height: 260px;
    border-left: 44px solid rgba(255, 255, 255, .05);
    border-right: 44px solid rgba(255, 255, 255, .05);
}

.visual-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    margin-left: auto;
}

.visual-copy h2,
.visual-copy h3 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
}

.visual-copy h2 {
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.visual-copy p {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 28px;
}

.visual-copy h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.visual-copy ul {
    display: grid;
    gap: 18px;
    list-style: none;
}

.visual-copy li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.45;
}

.visual-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.visual-scene {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 auto;
    width: min(64%, 520px);
    height: 210px;
}

.scene-ground {
    position: absolute;
    right: -20px;
    bottom: -52px;
    width: 560px;
    height: 135px;
    border-radius: 48% 0 0 0;
    background: #2f49dc;
}

.scene-cloud {
    position: absolute;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
}

.scene-cloud::before,
.scene-cloud::after {
    content: "";
    position: absolute;
    bottom: 4px;
    border-radius: 999px;
    background: inherit;
}

.scene-cloud::before {
    left: 8px;
    width: 18px;
    height: 18px;
}

.scene-cloud::after {
    right: 9px;
    width: 24px;
    height: 24px;
}

.scene-cloud-one {
    width: 64px;
    left: 82px;
    top: 56px;
}

.scene-cloud-two {
    width: 50px;
    right: 98px;
    top: 42px;
}

.scene-cloud-three {
    width: 42px;
    left: 12px;
    top: 102px;
    opacity: .45;
}

.scene-fence {
    position: absolute;
    left: 0;
    bottom: 38px;
    width: 126px;
    height: 46px;
    border-top: 6px solid #ffffff;
    border-bottom: 6px solid #ffffff;
    transform: rotate(-10deg);
}

.scene-fence::before {
    content: "";
    position: absolute;
    inset: -17px 18px auto;
    height: 80px;
    border-left: 6px solid #ffffff;
    border-right: 6px solid #ffffff;
}

.scene-house {
    position: absolute;
    right: 76px;
    bottom: 26px;
    width: 78px;
    height: 68px;
    border: 5px solid #2a3d9a;
    border-radius: 8px 8px 4px 4px;
    background: #ff5b6c;
}

.scene-house::before {
    content: "";
    position: absolute;
    left: 7px;
    top: -36px;
    width: 58px;
    height: 58px;
    border-top: 5px solid #2a3d9a;
    border-left: 5px solid #2a3d9a;
    background: #ff5b6c;
    transform: rotate(45deg);
}

.scene-house::after {
    content: "";
    position: absolute;
    left: 26px;
    bottom: 0;
    width: 24px;
    height: 36px;
    border-radius: 14px 14px 0 0;
    background: #ffffff;
}

.scene-tree {
    position: absolute;
    bottom: 38px;
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: #24327c;
}

.scene-tree::before {
    content: "";
    position: absolute;
    left: -15px;
    top: -18px;
    width: 38px;
    height: 28px;
    border-radius: 999px;
    background: #24327c;
}

.scene-tree-one {
    right: 184px;
}

.scene-tree-two {
    right: 28px;
    transform: scale(.78);
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        width: min(520px, 100%);
        margin: 0 auto;
        padding: 32px 26px 22px;
        align-items: center;
    }

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

    .auth-visual {
        display: none;
    }

    footer {
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .auth-panel {
        justify-content: center;
        padding: 24px 18px 18px;
    }

    .auth-card {
        max-height: calc(100vh - 74px);
    }

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

    .auth-card h1 {
        font-size: 36px;
    }

    .auth-card > p {
        margin-bottom: 24px;
    }

    .info-copy-btn {
        width: auto;
    }

    footer {
        bottom: 18px;
        font-size: 11px;
    }
}

@media (max-height: 700px) {
    .auth-card {
        max-height: calc(100vh - 48px);
    }

    .auth-kicker,
    .auth-card > p,
    footer {
        display: none;
    }

    .auth-card h1 {
        font-size: 34px;
        margin-bottom: 22px;
    }

    .input-wrapper,
    .btn-login {
        height: 42px;
    }

    .form-options {
        margin-bottom: 18px;
    }
}
