@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    /* 내부 시스템 UI처럼 깔끔하고 연한 그레이 배경 */
    background-color: #F4F5F7; 
    color: #333;
    min-height: 100vh;
}

.login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* 우측 상단 언어 선택바 */
.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 20px 30px;
}

.lang-selector {
    padding: 6px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 13px;
    color: #4B5563;
    background-color: #FFFFFF;
    outline: none;
    cursor: pointer;
}

.lang-selector:focus {
    border-color: #1E2B3C;
}

/* 메인 로그인 카드 - 모달처럼 깔끔하게 */
.login-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    margin: auto; /* 상하좌우 중앙 정렬 */
    padding: 40px;
    border-radius: 8px;
    /* 내부 UI 카드들과 비슷한 부드러운 그림자 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); 
    border: 1px solid #E5E7EB;
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

.logo-area img {
    height: 60px;
    object-fit: contain;
}

.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.input-box {
    position: relative;
    width: 100%;
}

.input-box .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 16px;
}

.input-box input {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 44px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.2s;
    outline: none;
}

.input-box input::placeholder {
    color: #9CA3AF;
}

.input-box input:focus {
    border-color: #1E2B3C; /* 포인트 다크 네이비 */
}

/* X 삭제 버튼, 비밀번호 보기 버튼 */
.clear-icon, .eye-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    cursor: pointer;
    font-size: 16px;
}

/* 아이디 칸의 X 버튼 (기본 숨김) */
.clear-icon { right: 16px; display: none; }

/* 비밀번호 칸의 눈 버튼 (항상 표시) */
.eye-icon { right: 16px; }

/* 마우스 호버 시 X 버튼 표시 (눈 숨기는 문제의 코드 삭제!) */
.input-box:hover .clear-icon { display: block; }


.action-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.text-btn, .text-link {
    background: none;
    border: none;
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.text-btn:hover, .text-link:hover {
    color: #1E2B3C;
    font-weight: 500;
}

/* 메인 로그인 버튼 (첨부 사진의 "닫기" 버튼 톤 차용) */
.submit-btn {
    width: 100%;
    height: 50px;
    background-color: #1E2B3C; /* 다크 네이비 */
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #2C3E50;
}

/* 하단 푸터 영역 */
.bottom-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: #6B7280;
}

.bottom-footer a {
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.bottom-footer a:hover {
    color: #1E2B3C;
    text-decoration: underline;
}

/* 모바일 반응형 처리 */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .login-layout {
        background-color: #FFFFFF; /* 모바일은 전체 흰배경이 깔끔함 */
    }
    
    .bottom-footer {
        font-size: 12px;
    }
}