/* /system/css/login.css
 * ------------------------------------------------------
 * WooriLeoPMC All-in-ONE 로그인 화면 전용 스타일
 * - 데스크탑/태블릿/모바일 반응형
 * - WooriLeoPMC 브랜드 텍스트에 최적화
 * - 고급스러운 블루 그라데이션 + 다크 UI
 * ------------------------------------------------------ */

/* 기본 리셋 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Noto Sans KR',
        'Helvetica Neue', Arial, sans-serif;
    background-color: #020617;
    color: #f1f5f9;
}

/* 전체 레이아웃 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #0b1120 100%);
    gap: 36px;
}

/* ------------------------------------------------------
   브랜드(왼쪽) 영역
   ------------------------------------------------------ */
.login-brand {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 12px;
}

/* 로고 원형 박스 */
.login-logo-circle {
    width: auto;
    padding: 10px 22px; /* 긴 텍스트 WooriLeoPMC 대응 */
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.45);
    margin-bottom: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #eff6ff;
    white-space: nowrap;
}

/* 브랜드 텍스트 영역 */
.brand-subtitle {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

.brand-desc {
    margin: 0;
    color: #b8c3d9;
    font-size: 14px;
    line-height: 1.6;
}

/* ------------------------------------------------------
   로그인 카드
   ------------------------------------------------------ */
.login-card-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    padding: 32px 26px 26px;
    border-radius: 24px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.14);
}

/* 카드 헤더 */
.login-card-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    color: #e5e7eb;
}

.login-card-header p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

/* ------------------------------------------------------
   에러 메시지
   ------------------------------------------------------ */
.login-alert {
    background: rgba(255, 99, 99, 0.14);
    border: 1px solid rgba(255, 99, 99, 0.55);
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 13px;
}

/* ------------------------------------------------------
   입력 폼
   ------------------------------------------------------ */
.login-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    padding-left: 40px;
    padding-right: 42px;
    height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.18s ease;
}

.input-wrapper:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.98);
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-size: 14px;
}

.input-wrapper input::placeholder {
    color: #64748b;
}

/* 아이콘 */
.input-icon {
    position: absolute;
    left: 12px;
    font-size: 20px;
    color: #64748b;
}

/* 비밀번호 토글 */
.toggle-password {
    position: absolute;
    right: 8px;
    border: none;
    background: transparent;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    color: #64748b;
    transition: 0.15s ease;
}

.toggle-password:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

.toggle-password span {
    font-size: 18px;
}

/* 옵션 영역 */
.form-options {
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #3b82f6;
    margin: 0;
}

/* 로그인 버튼 */
.login-button {
    margin-top: 10px;
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.45),
        0 0 0 1px rgba(191, 219, 254, 0.18);
    color: #eff6ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.16s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.login-button:active {
    transform: translateY(0);
}

/* ------------------------------------------------------
   푸터
   ------------------------------------------------------ */
.login-footer {
    margin-top: 20px;
    text-align: center;
}

.login-footer .system-name {
    margin: 0;
    font-size: 12px;
    color: #e5e7eb;
    font-weight: 500;
}

.login-footer .system-desc {
    margin: 4px 0;
    font-size: 11px;
    color: #94a3b8;
}

.login-footer .system-copy {
    margin: 0;
    font-size: 10px;
    color: #64748b;
}

/* ------------------------------------------------------
   반응형 스타일
   ------------------------------------------------------ */
@media (max-width: 1024px) {
    .login-page {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .login-brand {
        padding-left: 0;
    }

    .brand-title {
        font-size: 26px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .login-logo-circle {
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 12px;
    }

    .brand-title {
        font-size: 22px;
    }

    .login-card {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .input-wrapper {
        height: 40px;
    }

    .login-button {
        height: 40px;
        font-size: 13px;
    }
}
