:root {
    --navy: #0b2343;
    --navy-soft: #153a63;
    --teal: #10aaa5;
    --teal-dark: #0d8f97;
    --orange: #ff8a1f;
    --text: #1a3557;
    --muted: #73829b;
    --line: #d9e1ec;
    --surface: rgba(255, 255, 255, 0.96);
    --shadow: 0 28px 60px rgba(23, 48, 84, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(242, 207, 141, 0.22), transparent 22%),
        radial-gradient(circle at bottom left, rgba(27, 157, 149, 0.12), transparent 25%),
        #f6f8fc;
}

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

svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
}

.login-visual {
    position: relative;
    overflow: hidden;
    padding: 42px 48px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(7, 32, 63, 0.18), rgba(5, 22, 46, 0.72)),
        url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 30, 58, 0.78), rgba(8, 30, 58, 0.18)),
        linear-gradient(180deg, rgba(8, 30, 58, 0.05), rgba(8, 30, 58, 0.58));
}

.login-brand,
.login-story {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand__mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-brand__mark svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.login-brand h1 span {
    color: var(--teal);
}

.login-brand p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.login-brand p span {
    color: var(--orange);
}

.login-story {
    max-width: 430px;
}

.login-story__bar {
    width: 3px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--orange), #ffb457);
    margin-bottom: 18px;
}

.login-story h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4rem;
    line-height: 0.96;
    font-weight: 700;
}

.login-story h2 span {
    color: var(--orange);
}

.login-story p {
    margin: 0;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-pane {
    display: grid;
    place-items: center;
    padding: 42px 28px;
}

.login-card {
    width: min(100%, 390px);
    padding: 34px 32px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid rgba(230, 236, 244, 0.9);
}

.login-card__head {
    text-align: center;
    margin-bottom: 26px;
}

.login-card__head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    color: var(--navy);
}

.login-card__head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.login-alert {
    margin-bottom: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.login-alert.is-error {
    color: #a23f3f;
    background: #fff3f3;
    border: 1px solid rgba(210, 90, 90, 0.2);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #314766;
}

.field-box {
    position: relative;
}

.field-box__icon,
.field-box__action {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7c8aa1;
}

.field-box__icon {
    left: 14px;
}

.field-box__action {
    right: 14px;
}

.field-box input {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
    outline: 0;
    padding: 0 42px 0 40px;
    font-size: 0.96rem;
    color: var(--text);
    background: #fff;
}

.field-box input:focus {
    border-color: rgba(16, 170, 165, 0.7);
    box-shadow: 0 0 0 4px rgba(16, 170, 165, 0.08);
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.remember-me__box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--teal);
    color: #fff;
    display: grid;
    place-items: center;
}

.remember-me__box svg {
    width: 10px;
    height: 10px;
}

.forgot-link {
    color: var(--teal);
    font-size: 0.92rem;
    font-weight: 600;
}

.submit-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 16px 28px rgba(16, 170, 165, 0.26);
    cursor: pointer;
}

.submit-button__icon {
    width: 18px;
    height: 18px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.google-button {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: #334a6a;
    font-size: 0.97rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.google-button__icon {
    width: 22px;
    height: 22px;
}

.signup-copy {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.signup-copy a {
    color: var(--orange);
    font-weight: 700;
}

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

    .login-visual {
        min-height: 420px;
    }

    .login-story h2 {
        font-size: 3.2rem;
    }
}

@media (max-width: 640px) {
    body {
        background: #f6f8fc;
    }

    .login-shell {
        min-height: 100vh;
        display: block;
    }

    .login-visual {
        min-height: 308px;
        padding: 18px 16px 24px;
        justify-content: flex-start;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .login-brand h1 {
        font-size: 1.08rem;
    }

    .login-brand p {
        font-size: 0.85rem;
    }

    .login-story h2 {
        font-size: 1.1rem;
        line-height: 1.2;
        text-align: center;
    }

    .login-story p {
        display: none;
    }

    .login-brand {
        justify-content: center;
        text-align: left;
        margin-bottom: 94px;
    }

    .login-brand__mark {
        width: 50px;
        height: 50px;
    }

    .login-brand__mark svg {
        width: 28px;
        height: 28px;
    }

    .login-story {
        max-width: none;
        width: 100%;
        text-align: center;
    }

    .login-story__bar {
        display: none;
    }

    .login-pane {
        display: block;
        padding: 0 8px 18px;
        margin-top: -22px;
        position: relative;
        z-index: 2;
    }

    .login-card {
        width: 100%;
        padding: 18px 16px 18px;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -12px 32px rgba(23, 48, 84, 0.08);
    }

    .login-card__head h2 {
        font-size: 1.18rem;
        line-height: 1.15;
    }

    .login-card__head {
        margin-bottom: 14px;
    }

    .login-card__head p {
        margin-top: 6px;
        font-size: 0.88rem;
    }

    .field {
        margin-bottom: 12px;
    }

    .field label {
        margin-bottom: 7px;
        font-size: 0.88rem;
    }

    .field-box input,
    .google-button,
    .submit-button {
        height: 42px;
        font-size: 0.92rem;
    }

    .field-box input {
        padding-left: 38px;
        padding-right: 38px;
    }

    .login-meta {
        margin: 2px 0 14px;
        font-size: 0.84rem;
        gap: 8px;
        align-items: flex-start;
    }

    .remember-me,
    .forgot-link {
        font-size: 0.8rem;
    }

    .forgot-link {
        line-height: 1.35;
        text-align: right;
    }

    .divider {
        margin: 14px 0;
        font-size: 0.82rem;
        gap: 10px;
    }

    .signup-copy {
        margin-top: 14px;
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

@media (max-width: 420px) {
    .login-visual {
        min-height: 290px;
        padding: 16px 14px 22px;
    }

    .login-brand {
        margin-bottom: 82px;
    }

    .login-brand h1 {
        font-size: 1rem;
    }

    .login-story h2 {
        font-size: 1rem;
    }

    .login-card {
        padding: 16px 14px 16px;
        border-radius: 24px 24px 0 0;
    }

    .login-card__head h2 {
        font-size: 1.08rem;
    }

    .field label,
    .field-box input,
    .google-button,
    .submit-button {
        font-size: 0.88rem;
    }

    .login-meta {
        flex-direction: column;
    }

    .forgot-link {
        text-align: left;
    }
}
