:root {
    --login-ink: #373b3e;
    --login-muted: #6c7885;
    --login-line: #bec8d1;
    --login-brand-base: #86cecb;
    --login-brand: #137a7f;
    --login-brand-dark: #0d4e53;
    --login-accent: #e12885;
    --login-paper: #f7f9fa;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--login-ink);
    background: #e8eef0;
    font-family: "NotoSansKR-Regular", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(28rem, 1.08fr) minmax(28rem, .92fr);
    min-height: 100vh;
    background: var(--login-paper);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 76% 20%, rgba(134, 206, 203, .25), transparent 26rem),
        linear-gradient(145deg, #174f54 0%, #19383c 52%, #252d30 100%);
}

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

.brand-panel::before {
    top: -12rem;
    right: -15rem;
    width: 36rem;
    height: 36rem;
}

.brand-panel::after {
    top: -4rem;
    right: -7rem;
    width: 24rem;
    height: 24rem;
}

.brand-mark,
.brand-copy,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.brand-mark img {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 .4rem .7rem rgba(0, 0, 0, .25));
}

.brand-mark strong {
    display: block;
    font-family: "NotoSansKR-Bold", "Malgun Gothic", sans-serif;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.brand-mark span {
    display: block;
    margin-top: .08rem;
    color: #9cb8c0;
    font-size: .7rem;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brand-copy {
    max-width: 39rem;
    padding: 5rem 0;
}

.brand-copy small {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--login-brand-base);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.brand-copy small::before {
    width: 1.8rem;
    height: 1px;
    content: "";
    background: var(--login-accent);
}

.brand-copy h1 {
    margin: 1.1rem 0 1rem;
    font-family: "NotoSansKR-Bold", "Malgun Gothic", sans-serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.brand-title-tail {
    white-space: nowrap;
}

.brand-copy p {
    max-width: 31rem;
    margin: 0;
    color: #afc3c9;
    font-size: clamp(.95rem, 1.3vw, 1.12rem);
    line-height: 1.8;
}

.system-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2.2rem;
}

.system-strip span {
    padding: .48rem .68rem;
    color: #c9dade;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .045);
    font-size: .72rem;
}

.system-strip i {
    display: inline-block;
    width: .42rem;
    height: .42rem;
    margin-right: .38rem;
    border-radius: 50%;
    background: var(--login-brand-base);
    box-shadow: 0 0 0 .22rem rgba(134, 206, 203, .12);
}

.brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #91afb1;
    font-size: .68rem;
}

.login-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 3rem clamp(2rem, 6vw, 6rem);
    background: linear-gradient(135deg, #fff, #f5f8f8);
}

.login-card {
    width: 100%;
    max-width: 27rem;
}

.login-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 3.3rem;
}

.mobile-logo {
    display: none;
    align-items: center;
    gap: .65rem;
}

.mobile-logo img {
    width: 2.45rem;
    height: 2.45rem;
}

.mobile-logo b,
.mobile-logo span {
    display: block;
}

.mobile-logo b {
    font-family: "NotoSansKR-Bold", "Malgun Gothic", sans-serif;
    font-size: 1.05rem;
}

.mobile-logo span {
    margin-top: .1rem;
    color: var(--login-muted);
    font-size: .54rem;
}

.language-button,
.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem .7rem;
    color: #53616d;
    border: 1px solid var(--login-line);
    border-radius: .65rem;
    background: #fff;
    cursor: pointer;
    font-size: .76rem;
}

.language-button:hover,
.language-button:focus,
.service-button:hover,
.service-button:focus {
    color: var(--login-brand);
    border-color: #80b7ba;
    outline: none;
}

.language-menu .dropdown-menu {
    max-height: min(24rem, 70vh);
    overflow-y: auto;
    border-color: #d9e0e4;
    box-shadow: 0 .7rem 1.8rem rgba(28, 55, 61, .12);
    font-size: .8rem;
}

.login-heading > span {
    color: var(--login-brand);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: .55rem 0 .6rem;
    font-family: "NotoSansKR-Bold", "Malgun Gothic", sans-serif;
    font-size: 2rem;
    letter-spacing: -.045em;
}

.login-heading p {
    margin: 0 0 2.2rem;
    color: var(--login-muted);
    font-size: .86rem;
    line-height: 1.65;
}

.login-form {
    width: 100%;
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    margin-bottom: .5rem;
    color: #42515d;
    font-size: .76rem;
    font-weight: 750;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 3.35rem;
    padding: 0 1rem;
    color: var(--login-ink);
    border: 1px solid var(--login-line);
    border-radius: .72rem;
    outline: none;
    background: #fff;
    transition: .15s ease;
}

.input-wrap input[type="password"],
.input-wrap input#password {
    padding-right: 3rem;
}

.input-wrap input::placeholder {
    color: #9aa5ad;
}

.input-wrap input:focus {
    border-color: #56a5aa;
    box-shadow: 0 0 0 .22rem rgba(22, 106, 115, .11);
}

.input-wrap button {
    position: absolute;
    top: 50%;
    right: .45rem;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    color: #75818b;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.input-wrap button:hover,
.input-wrap button:focus {
    color: var(--login-brand);
    outline: none;
    background: #edf6f6;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .2rem 0 1.55rem;
    color: #66737e;
    font-size: .76rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    cursor: pointer;
}

.remember input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--login-brand);
}

.help-link {
    color: var(--login-brand);
    text-decoration: none;
    font-weight: 700;
}

.help-link:hover {
    color: var(--login-brand-dark);
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    height: 3.35rem;
    color: #fff;
    border: 0;
    border-radius: .72rem;
    background: linear-gradient(115deg, #176f77, #10545e);
    box-shadow: 0 .75rem 1.5rem rgba(15, 84, 94, .18);
    cursor: pointer;
    font-weight: 800;
    transition: .15s ease;
}

.submit-button:hover,
.submit-button:focus {
    color: #fff;
    outline: none;
    box-shadow: 0 1rem 1.7rem rgba(15, 84, 94, .22);
    transform: translateY(-1px);
}

.mobile-service-menu {
    margin-top: .75rem;
}

.service-button {
    width: 100%;
}

.login-foot {
    margin-top: 2.3rem;
    padding-top: 1.3rem;
    color: #8a959d;
    border-top: 1px solid #e9edef;
    text-align: center;
    font-size: .68rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .login-shell {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100dvh;
        padding: 2rem 1.25rem;
    }

    .login-card {
        max-width: 25rem;
    }

    .login-top {
        justify-content: space-between;
        margin-bottom: 3rem;
    }

    .mobile-logo {
        display: flex;
    }
}

@media (max-width: 420px) {
    .login-panel {
        place-items: start center;
        padding-top: 1.3rem;
    }

    .login-heading h2 {
        font-size: 1.75rem;
    }

    .login-top {
        margin-bottom: 2.5rem;
    }

    .language-button span {
        display: none;
    }

    .language-button {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .input-wrap input,
    .submit-button {
        transition: none;
    }
}
