:root {
    --primary: #1f6feb;
    --primary-dark: #0b4eb3;
    --primary-soft: #eaf2ff;
    --navy: #101d3a;
    --navy-light: #1d315a;
    --background: #f4f7fb;
    --surface: #ffffff;
    --text: #14213d;
    --muted: #718096;
    --line: #dde5ef;
    --danger: #b42318;
    --danger-soft: #fff0f0;
    --shadow:
        0 24px 65px rgba(20, 33, 61, 0.14);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--background);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.login-page {
    min-height: 100vh;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(390px, 0.92fr)
        minmax(520px, 1.08fr);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(70, 143, 255, 0.35),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(47, 206, 148, 0.2),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #101d3a 0%,
            #14284d 55%,
            #1d315a 100%
        );
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.login-brand-panel::before {
    width: 430px;
    height: 430px;
    top: -210px;
    right: -190px;
}

.login-brand-panel::after {
    width: 320px;
    height: 320px;
    left: -180px;
    bottom: -150px;
}

.brand-panel-content,
.brand-panel-footer {
    position: relative;
    z-index: 1;
}

.seampify-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    min-height: 76px;
    padding: 12px 18px;
    border-radius: 18px;
    background: #ffffff;
    text-decoration: none;
    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.17);
}

.seampify-logo {
    display: block;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.logo-fallback {
    display: none;
    color: var(--navy);
    font-size: 27px;
    font-weight: 900;
}

.brand-copy {
    max-width: 560px;
    margin-top: clamp(54px, 11vh, 105px);
}

.eyebrow {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d9e6fb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.brand-copy h1 {
    max-width: 520px;
    margin: 20px 0 15px;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.brand-copy p {
    max-width: 520px;
    margin: 0;
    color: #c8d4e8;
    font-size: 17px;
    line-height: 1.65;
}

.feature-list {
    display: grid;
    gap: 13px;
    max-width: 560px;
    margin-top: 42px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.feature-icon {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.17);
    color: #77e8b5;
    font-size: 13px;
    font-weight: 900;
}

.feature-item strong,
.feature-item small {
    display: block;
}

.feature-item strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.feature-item small {
    color: #b9c7dc;
    font-size: 12px;
    line-height: 1.45;
}

.brand-panel-footer {
    margin-top: 44px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 42px clamp(30px, 7vw, 110px);
    background:
        radial-gradient(
            circle at top right,
            rgba(31, 111, 235, 0.09),
            transparent 34%
        ),
        #f7f9fc;
}

.mobile-logo {
    display: none;
}

.login-card {
    width: 100%;
    max-width: 510px;
    margin: auto;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-heading {
    margin-bottom: 28px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 16px 0 7px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.alert.error {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid #ffd0cf;
}

.alert-icon {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--danger);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

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

.form-label {
    display: grid;
    gap: 8px;
    color: #39465d;
    font-size: 12px;
    font-weight: 800;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 74px 0 46px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    transition:
        border-color 0.18s,
        box-shadow 0.18s,
        background 0.18s;
}

.input-wrap input::placeholder {
    color: #a0aabc;
}

.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(31, 111, 235, 0.12);
    background: #ffffff;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #8d99ac;
    font-size: 13px;
    font-weight: 900;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.password-toggle:hover {
    background: var(--primary-soft);
}

.sign-in-button {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
        0 12px 26px rgba(31, 111, 235, 0.24);
    transition:
        transform 0.17s,
        box-shadow 0.17s;
}

.sign-in-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 15px 32px rgba(31, 111, 235, 0.29);
}

.sign-in-button:active {
    transform: translateY(0);
}

.login-help {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.login-help strong,
.login-help span {
    display: block;
}

.login-help strong {
    margin-bottom: 4px;
    font-size: 12px;
}

.login-help span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.login-footer {
    width: 100%;
    max-width: 510px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px auto 0;
    color: #8a96a8;
    font-size: 11px;
}

.login-footer a {
    color: var(--primary);
    font-weight: 750;
    text-decoration: none;
}

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

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 26px 20px;
    }

    .mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .mobile-logo img {
        max-width: 180px;
        max-height: 75px;
        object-fit: contain;
    }
}

@media (max-width: 560px) {
    .login-form-panel {
        justify-content: flex-start;
        padding: 24px 14px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

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

    .login-footer {
        display: block;
        text-align: center;
        line-height: 1.8;
    }

    .login-footer a {
        display: block;
    }
}
