/* 로그인 화면 — admin·agency 공통 (두 모듈에 같은 파일)
 * 좌측: 로고·문구 없이 광고 아이콘 패턴 이미지만 / 우측: 로그인 폼
 */
.login-body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #f5f6f9;
}

.login {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* ── 좌측 이미지 ── */
.login-visual {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden;
    background-color: #1f45f0;
    background-image:
            url(/assets/image/login-pattern.svg),
            radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 42%),
            radial-gradient(circle at 85% 90%, rgba(10, 20, 120, 0.45), transparent 55%),
            linear-gradient(155deg, #2b57ff 0%, #1d3fe4 55%, #1631c4 100%);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-size: 720px 720px, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0 0, center, center, center;
    animation: login-drift 140s linear infinite;
}

@keyframes login-drift {
    to {
        background-position: 720px 720px, center, center, center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-visual {
        animation: none;
    }
}

/* ── 우측 폼 ── */
.login-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f5f6f9;
}

.login-box {
    width: 100%;
    max-width: 340px;
}

.login-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #191f28;
    letter-spacing: -0.5px;
}

.login-sub {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6b7684;
}

.login-form {
    margin-top: 40px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field + .login-field {
    margin-top: 22px;
}

.login-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #191f28;
}

.login-field label i {
    font-size: 14px;
    color: #1b1d2a;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d1d6db;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: #191f28;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-input::placeholder {
    color: #adb5bd;
}

.login-input:focus {
    border-color: #2350ff;
    box-shadow: 0 0 0 3px rgba(35, 80, 255, 0.12);
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: #4e5968;
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 16px;
    height: 16px;
    accent-color: #2350ff;
}

.login-error {
    margin: 14px 0 0;
    font-size: 13px;
    color: #e5484d;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin-top: 24px;
    border: none;
    border-radius: 10px;
    background: #1b1d2a;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}

.login-btn:hover {
    background: #2c2f40;
}

.login-btn:focus-visible {
    outline: 3px solid rgba(35, 80, 255, 0.4);
    outline-offset: 2px;
}

.login-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

.login-help {
    margin: 24px 0 0;
    font-size: 13px;
    color: #6b7684;
    text-align: center;
    line-height: 1.6;
}

/* 모바일에서는 좌측 이미지 숨김 */
@media (max-width: 768px) {
    .login-visual {
        display: none;
    }
}
