/* SHV NEW ERP - Login */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(-45deg, #0a1628 0%, #1a3a6e 30%, #2952a3 60%, #3b6cf7 100%);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    overflow: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 배경 장식 */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}
body::before {
    width: 600px; height: 600px;
    background: #fff;
    top: -200px; right: -100px;
}
body::after {
    width: 400px; height: 400px;
    background: #fff;
    bottom: -150px; left: -80px;
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 로고 */
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: #1a3a6e;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.login-logo p {
    color: #7a8ea8;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* 에러 */
.login-error {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 16px;
    animation: shake 0.4s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* 입력 필드 */
.login-field {
    margin-bottom: 16px;
}
.login-field label {
    display: block;
    color: #4a5a72;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}
.login-field label i {
    color: #3b6cf7;
    margin-right: 4px;
    width: 14px;
}
.login-field input {
    width: 100%;
    padding: 12px 14px;
    background: #f4f7fb;
    border: 2px solid #e4e9f2;
    border-radius: 10px;
    color: #1a2a40;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.login-field input:focus {
    border-color: #3b6cf7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 108, 247, 0.1);
}
.login-field input::placeholder {
    color: #a0b0c4;
}

/* 비밀번호 토글 */
.pw-wrap {
    position: relative;
}
.pw-wrap input {
    padding-right: 42px;
}
.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8a9ab4;
    font-size: 15px;
    transition: color 0.2s;
}
.pw-toggle:hover {
    color: #3b6cf7;
}

/* Caps Lock 경고 */
.caps-warn {
    color: #e67e22;
    font-size: 11px;
    text-align: center;
    margin-bottom: 10px;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 옵션 */
.login-options {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.save-id {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6a7a90;
    font-size: 12px;
    cursor: pointer;
}
.save-id input[type="checkbox"] {
    accent-color: #3b6cf7;
    width: 15px;
    height: 15px;
}

/* 로그인 버튼 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b6cf7 0%, #2952a3 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(59, 108, 247, 0.35);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 108, 247, 0.45);
}
.login-btn:active {
    transform: translateY(0);
}

/* 신규직원 등록 버튼 */
.register-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #f4f7fb;
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    color: #6a7a90;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.register-btn:hover {
    background: #e8ecf4;
    color: #4a5a72;
}

/* 링크 */
.login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf2;
}
.cad-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b6cf7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #d4e0f7;
    border-radius: 8px;
    transition: all 0.2s;
}
.cad-link:hover {
    background: #eef3ff;
    border-color: #3b6cf7;
}

/* 푸터 */
.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #a0b0c4;
    font-size: 10px;
}

/* 반응형 */
@media (max-width: 480px) {
    .login-wrap { padding: 16px; }
    .login-box { padding: 30px 24px 24px; }
    .login-logo h1 { font-size: 22px; }
}
