@charset 'utf-8';

/*
 * Copyright ⓒ 2025 by solbitech All rights reserved
 * Updated: High-End Security Focused Minimalist Design
 */

:root {
    --primary-color: #4e73df;
    --primary-hover: #2e59d9;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #858796;
    --input-bg: #f1f3f8;
    --input-focus: #ffffff;
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.03);
    --accent-warning: #f6c23e;
}

/** 공통 **/
html, body {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#solbi-login-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fc 0%, #e2e8f0 100%);
}

#vip-solbitech-version {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 9999;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.6;
}

.solbi-login-main-frame {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

.solbi-login-main-box {
    width: 100%;
    padding: 45px 40px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.solbi-login-main-items-item {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 16px;
}

.solbi-login-main-items-item-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.solbi-login-main-items-item-logo > img {
    max-width: 180px;
    height: auto;
}

/* 입력 필드 레이아웃 */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-with-icon > input {
    width: 100%;
    border: 1.5px solid transparent !important;
    background-color: var(--input-bg);
    padding: 14px 44px 14px 42px;
    font-size: 15px;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-main);
    box-sizing: border-box;
}

.input-with-icon > input:focus {
    background-color: var(--input-focus);
    border-color: rgba(78, 115, 223, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.1);
}

.input-with-icon > input:focus + .input-prefix-icon {
    color: var(--primary-color);
}

/* Edge 브라우저 기본 비밀번호 아이콘 제거 */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* 비밀번호 토글 아이콘 (Shield/Unlock) */
.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #b2bec3;
    cursor: pointer;
    padding: 8px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.toggle-password:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.toggle-password.active {
    color: var(--primary-color);
}

/* 아이디 저장 영역 */
.solbi-login-extra-options {
    display: flex;
    justify-content: flex-start;
    margin: 12px 0 24px 4px;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.remember-me-label input {
    position: absolute;
    opacity: 0;
}

.custom-checkbox {
    height: 15px;
    width: 15px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    margin-top: 1px;
}

.remember-me-label input:checked ~ .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 3.5px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-label input:checked ~ .custom-checkbox:after {
    display: block;
}

.label-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* 로그인 버튼 */
.btn-solbi-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-solbi-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.35);
}

/* CapsLock 알림 뱃지 */
.solbi-login-capslock {
    position: absolute;
    right: 50px; /* 토글 아이콘 옆에 배치 */
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 20;
    pointer-events: none;
}

.solbi-login-capslock-box span {
    padding: 3px 8px;
    background: var(--accent-warning);
    color: #403000;
    font-size: 10px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(246, 194, 62, 0.4);
    display: inline-block;
    white-space: nowrap;
}

/* 하단 정보 */
.solbi-login-bottom-frame {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}