:root {
    --bg: #edf6f2;
    --bg-soft: #e5f0eb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(16, 67, 56, 0.1);
    --line-strong: rgba(16, 67, 56, 0.18);
    --text-main: #16362e;
    --text-soft: rgba(22, 54, 46, 0.72);
    --brand: #0f5f49;
    --brand-strong: #0c4a39;
    --accent: #39c796;
    --accent-soft: #7fe4bd;
    --danger: #a34a46;
    --danger-soft: rgba(255, 109, 103, 0.12);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(16, 67, 56, 0.1);
    --shadow-lg: 0 26px 70px rgba(30, 83, 69, 0.12);
    --shadow-md: 0 18px 36px rgba(30, 83, 69, 0.1);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Manrope", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 82% 16%, rgba(125, 221, 190, 0.18), transparent 0 24rem),
        radial-gradient(circle at 12% 88%, rgba(163, 228, 204, 0.18), transparent 0 22rem),
        linear-gradient(135deg, #edf6f2 0%, #e6f1ec 46%, #dcece5 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(16, 67, 56, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 67, 56, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.14));
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-backdrop-link {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(21, 82, 67, 0.08);
    box-shadow: 0 12px 26px rgba(31, 91, 74, 0.08);
    color: var(--brand);
    font-weight: 800;
}

.login-shell {
    width: min(1320px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 430px);
    gap: 22px;
    align-items: stretch;
}

.login-brand,
.login-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 252, 250, 0.9));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.login-brand {
    min-height: 740px;
    padding: 34px 38px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 251, 248, 0.94)),
        radial-gradient(circle at 82% 52%, rgba(57, 199, 150, 0.12), transparent 18rem);
}

.login-brand::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    top: -180px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 199, 150, 0.16), transparent 72%);
}

.login-brand__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(15, 95, 73, 0.08);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand__copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-top: 44px;
}

.login-brand__copy h1 {
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    color: #103b30;
    font-weight: 800;
}

.login-brand__copy p {
    margin-top: 20px;
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 36rem;
}

.login-brand__highlights {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
    max-width: 46rem;
}

.login-highlight {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 95, 73, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-highlight strong {
    display: block;
    color: var(--brand-strong);
    margin-bottom: 8px;
    font-size: 1rem;
}

.login-highlight span {
    display: block;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 0.94rem;
}

.login-brand__visual {
    position: absolute;
    right: 34px;
    bottom: 32px;
    width: min(420px, 42vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.login-brand__ring {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 58%),
        linear-gradient(180deg, rgba(57, 199, 150, 0.3), rgba(15, 95, 73, 0.18));
    box-shadow:
        0 0 0 16px rgba(255, 255, 255, 0.42),
        0 0 0 30px rgba(57, 199, 150, 0.08),
        0 24px 50px rgba(15, 95, 73, 0.16);
}

.login-brand__logo-shell {
    width: 78%;
    aspect-ratio: 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 40px rgba(11, 44, 35, 0.08);
}

.login-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-brand__arc,
.login-brand__dot {
    position: absolute;
    pointer-events: none;
}

.login-brand__arc {
    border: 1px solid rgba(15, 95, 73, 0.14);
    border-radius: 999px;
}

.login-brand__arc--large {
    top: -28px;
    right: 8px;
    width: 220px;
    height: 220px;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.login-brand__arc--small {
    left: 18px;
    bottom: 18px;
    width: 136px;
    height: 136px;
    border-top-color: transparent;
    border-right-color: transparent;
    opacity: 0.55;
}

.login-brand__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 16px rgba(127, 228, 189, 0.84);
    animation: pulse 2.1s infinite;
}

.login-brand__dot--one {
    top: 72px;
    right: 54px;
}

.login-brand__dot--two {
    left: 84px;
    bottom: 110px;
    animation-delay: -0.8s;
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 252, 250, 0.96));
}

.login-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(15, 95, 73, 0.12);
}

.login-card__eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-card__header h2 {
    margin-top: 8px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--brand-strong);
}

.login-alert {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 109, 103, 0.24);
    border-radius: 14px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 34px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-field span {
    color: rgba(21, 58, 48, 0.88);
    font-size: 0.95rem;
    font-weight: 700;
}

.login-field input {
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.login-field input::placeholder {
    color: rgba(21, 58, 48, 0.42);
}

.login-field input:focus {
    border-color: rgba(57, 199, 150, 0.46);
    box-shadow: 0 0 0 4px rgba(57, 199, 150, 0.1);
    background: #ffffff;
}

.login-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.login-checkbox input {
    accent-color: var(--accent);
}

.login-link {
    color: var(--brand);
    font-size: 0.95rem;
    font-weight: 700;
}

.login-button {
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #39c796, #0f7f5d);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 180ms ease, filter 180ms ease;
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.login-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.login-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 95, 73, 0.08);
    border: 1px solid rgba(15, 95, 73, 0.08);
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 700;
}

.login-footnote {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.16);
        opacity: 1;
    }
}

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

    .login-brand {
        min-height: 560px;
    }

    .login-brand__visual {
        width: min(340px, 58vw);
    }
}

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

    .login-backdrop-link {
        position: static;
        margin-bottom: 14px;
    }

    .login-brand,
    .login-card {
        border-radius: 24px;
    }

    .login-brand {
        min-height: 460px;
        padding: 24px 20px;
    }

    .login-brand__copy {
        margin-top: 28px;
    }

    .login-brand__copy p {
        font-size: 1rem;
    }

    .login-brand__highlights {
        grid-template-columns: 1fr;
    }

    .login-brand__visual {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(280px, 74vw);
        margin: 30px auto 0;
    }

    .login-card {
        padding: 24px 20px;
    }

    .login-form__row {
        flex-direction: column;
        align-items: flex-start;
    }
}
