@font-face {
    font-family: 'Jeju Gothic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/JejuGothic-Regular.woff2) format('woff2');
}

.login-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    background: #f3efe8;
}

.login-container::before,
.login-container::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

.login-container::before {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 20%),
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08) 0,
            rgba(255, 255, 255, 0.08) 18px,
            rgba(255, 255, 255, 0) 18px,
            rgba(255, 255, 255, 0) 46px
        );
}

.login-container::after {
    inset: auto 0 0 auto;
    width: min(36vw, 420px);
    height: min(36vw, 420px);
    border-radius: 999px 0 0 0;
    background: radial-gradient(circle at bottom right, rgba(92, 109, 128, 0.08) 0, rgba(92, 109, 128, 0) 70%);
}

.login-scene {
    position: relative;
    width: min(456px, 100%);
    z-index: 1;
}

.login-card {
    display: block;
    min-height: auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(190, 183, 173, 0.64);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 30px rgba(52, 46, 39, 0.1),
        0 2px 8px rgba(52, 46, 39, 0.04);
}

.login-card,
.login-card input,
.login-card button,
.login-card label,
.login-card span,
.login-card div,
.login-card p {
    font-family: 'Youth', 'Jeju Gothic', 'Malgun Gothic', 'Nanum Gothic', sans-serif !important;
}

.login-brand-inline {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e8e0d6;
}

.login-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-logo {
    width: 96px;
    height: auto;
    margin: 0;
}

.login-title {
    font-family: 'Youth', 'Jeju Gothic', 'Nanum Gothic', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(24px, 5vw, 30px);
    line-height: 1;
    letter-spacing: 0.02em;
    color: #243241;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 18px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
    color: #31404c;
}

.login-form-header {
    display: none;
}

.login-form-kicker {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #2f455b;
}

.login-form-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6e6a63;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.login-credential-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 0;
    width: 100%;
    align-items: stretch;
    min-width: 0;
}

.login-field-label {
    display: block;
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #655f58;
    text-align: left;
    line-height: 1.2;
    margin: 0;
}

.login-input-wrap {
    position: relative;
    width: 100%;
}

.login-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #88909a;
    font-size: 11px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease, transform 0.2s ease;
}

.login-card .form-group {
    margin-bottom: 0;
    display: block;
    width: 100%;
}

.login-card .form-group input {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px 7px 28px;
    border-radius: 6px;
    border: 1px solid #d7d1c8;
    background: #fcfbf9;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 2px rgba(31, 41, 55, 0.03);
    color: #24313f;
    font-size: 11px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-card .form-group input::placeholder {
    color: #a29b91;
}

.login-card .form-group input:hover {
    background: #ffffff;
    border-color: #c8c0b5;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: #42566b;
    background: #ffffff;
    box-shadow:
        inset 0 1px 2px rgba(31, 41, 55, 0.04),
        0 0 0 3px rgba(66, 86, 107, 0.12);
}

.login-card .login-input-wrap:focus-within .login-input-icon {
    color: #2d3a48;
    transform: translateY(-50%);
}

.login-card .form-group.password-group input {
    padding-right: 28px;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

.login-card #pass,
.login-card input#pass,
.login-card input[type="password"]#pass,
.login-card input[type="text"]#pass {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

.login-card .btn-toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid transparent;
    background: transparent;
    color: #7f877f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-card .btn-toggle-pass:hover,
.login-card .btn-toggle-pass.active {
    background: rgba(123, 136, 150, 0.08);
    border-color: rgba(123, 136, 150, 0.08);
    color: #4c5966;
}

.login-checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.login-check-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-card .checkbox-group {
    margin-bottom: 0;
}

.login-card .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5a5a56;
    font-size: 10px;
    line-height: 1.45;
    cursor: pointer;
}

.login-card .checkbox-label input[type="checkbox"] {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: #42566b;
    cursor: pointer;
}

.login-card .checkbox-label span {
    flex: 1 1 auto;
    display: block;
    word-break: keep-all;
    cursor: pointer;
}

.login-card .agree-label {
    text-align: left;
}

.login-card .work-label {
    text-align: left;
}

.login-card .work-label span {
    color: #7a6754;
}

.login-save-options {
    padding-top: 2px;
}

.login-card .checkbox-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 4px 10px;
    margin-bottom: 0;
}

.login-card .checkbox-row .checkbox-label {
    justify-content: flex-start;
    align-items: center;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #6c675f;
    font-size: 10px;
}

.login-card .checkbox-row .checkbox-label input[type="checkbox"] {
    margin: 0;
}

.login-card .checkbox-row .checkbox-label span {
    flex: 0 1 auto;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
}

.login-card .btn-login {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    padding: 0 22px;
    background: #314557;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 14px rgba(49, 69, 87, 0.14);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.login-card .btn-login:hover {
    background: #273949;
    transform: none;
    box-shadow: 0 10px 20px rgba(39, 57, 73, 0.18);
}

.login-card .btn-login:active {
    box-shadow: 0 6px 12px rgba(39, 57, 73, 0.14);
}

.login-card .btn-login i {
    font-size: 11px;
}

.login-card .error-message {
    margin-top: 6px;
    min-height: 12px;
    color: #cb5868;
    font-size: 10px;
    font-weight: 400;
    text-align: center;
}

@media (max-width: 980px) {
    .login-container {
        padding: 20px;
    }

    .login-form-panel {
        padding: 22px 20px 20px;
    }
}

@media (max-width: 520px) {
    .login-scene {
        width: min(372px, 100%);
    }

    .login-credential-row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .login-container {
        padding: 14px;
        align-items: center;
    }

    .login-card {
        border-radius: 9px;
    }

    .login-form-panel {
        padding: 20px 16px 18px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-brand-top {
        align-items: center;
    }

    .login-card .checkbox-row {
        gap: 6px 10px;
    }
}
