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

:root {
    --background: #eef8f8;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(255, 255, 255, 0.88);
    --text: #16363a;
    --muted: #71868a;
    --primary: #0aa6a6;
    --primary-dark: #008b8f;
    --purple: #006c73;
    --danger: #d94d65;
    --success: #2a9d73;
    --shadow: 0 30px 80px rgba(0, 76, 83, 0.14);
}

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

body {
    min-height: 100vh;
    overflow: hidden;
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
   background:
    radial-gradient(
        circle at 8% 12%,
        rgba(46, 149, 168, 0.34),
        transparent 30%
    ),
    radial-gradient(
        circle at 92% 88%,
        rgba(10, 166, 166, 0.22),
        transparent 32%
    ),
    var(--background);
}

.background-shape {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
}

.shape-one {
    top: -130px;
    left: 32%;
    width: 340px;
    height: 340px;
    background: rgba(255, 255, 255, 0.5);
}

.shape-two {
    right: 4%;
    bottom: 5%;
    width: 180px;
    height: 180px;
    background: rgba(125, 142, 255, 0.15);
}

.shape-three {
    left: 3%;
    bottom: -70px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.4);
}

.login-page {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(390px, 0.95fr) 1.35fr;
    width: min(1280px, calc(100% - 64px));
    height: calc(100vh - 40px);
    min-height: 0;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
height: 100%;
min-height: 0;
    padding: 48px;
    color: white;
    background:
    linear-gradient(
        145deg,
        rgba(10, 166, 166, 0.96),
        rgba(0, 108, 115, 0.94)
    );
}



.brand-badge,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}


.brand-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 15px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 76, 83, 0.2);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 15px;
    color: white;
    font-size: 24px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 30px rgba(30, 48, 116, 0.18);
    backdrop-filter: blur(12px);
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.16em;
    opacity: 0.78;
}

.brand-content {
    position: relative;
    z-index: 1;
    margin: auto 0;
}

.eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-content .eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.brand-content h1 {
    max-width: 500px;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.brand-description {
    max-width: 480px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.security-note {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 56px;
}

.login-card {
    width: min(440px, 100%);
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(56, 74, 110, 0.12);
    backdrop-filter: blur(24px);
}

.mobile-brand {
    display: none;
    margin-bottom: 36px;
}

.mobile-brand .brand-logo {
    border-color: rgba(10, 166, 166, 0.18);
    background: rgba(10, 166, 166, 0.07);
}

.mobile-brand .brand-name,
.mobile-brand .brand-subtitle {
    color: var(--text);
}

.login-heading .eyebrow {
    margin-bottom: 12px;
    color: var(--primary);
}

.login-heading h2 {
    font-size: 30px;
    letter-spacing: -0.03em;
}

.login-heading > p:last-child {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

form {
    margin-top: 34px;
}

.field-group + .field-group {
    margin-top: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 70px 0 47px;
    outline: none;
    border: 1px solid rgba(124, 143, 173, 0.18);
    border-radius: 15px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.72);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #a0aabd;
}

.input-wrapper input:focus {
    border-color: rgba(79, 134, 247, 0.55);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 134, 247, 0.1);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #8e9bb0;
    font-size: 13px;
    transform: translateY(-50%);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    border: 0;
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-message {
    display: none;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.login-message.error {
    display: block;
    color: var(--danger);
    background: rgba(217, 77, 101, 0.09);
}

.login-message.success {
    display: block;
    color: var(--success);
    background: rgba(42, 157, 115, 0.09);
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin-top: 22px;
    border: 0;
    border-radius: 15px;
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--purple)
        );
    box-shadow: 0 16px 30px rgba(79, 134, 247, 0.25);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(79, 134, 247, 0.3);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.help-text {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 900px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        grid-template-columns: 1fr;
        width: min(620px, calc(100% - 32px));
        min-height: auto;
        margin: 16px auto;
    }

    .brand-panel {
        display: none;
        overflow: hidden;
    }

    .login-panel {
        min-height: calc(100vh - 32px);
        padding: 24px;
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 520px) {
    .login-panel {
        padding: 14px;
    }

    .login-card {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .login-heading h2 {
        font-size: 25px;
    }
}

.brand-tagline {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-buildings {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.32;
    filter:
        grayscale(0.15)
        saturate(0.75)
        contrast(0.9);
    mix-blend-mode: luminosity;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent 8%,
            rgba(0, 0, 0, 0.8) 35%,
            black 100%
        );
    mask-image:
        linear-gradient(
            to bottom,
            transparent 8%,
            rgba(0, 0, 0, 0.8) 35%,
            black 100%
        );
}

.brand-badge,
.brand-tagline {
    position: relative;
    z-index: 2;
}