/* 1. Reset & Base Settings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* 2. Layout (Flexbox 분할 화면) */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    flex-wrap: wrap; /* 모바일 대응을 위한 래핑 */
}
.brand-panel, .form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* 3. Brand Panel Styling */
.brand-panel {
    position: relative;
    background: url('../img/satellite_map_dark.png') no-repeat center center;
    background-size: cover;
    color: #ffffff;
}
.brand-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.brand-content {
    z-index: 2;
    text-align: center;
}
.brand-content h1 {
    font-size: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.text-warning { color: #f7b733; }
.text-white { color: #ffffff; }

/* 4. Form Panel & Inputs Styling */
.login-form-box {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 12px; /* 모서리 둥글게 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* 부드러운 그림자 */
}
.login-title {
    text-align: center;
    color: #f7b733;
    font-size: 1.75rem;
    font-weight: normal;
    margin-bottom: 2rem;
}
.logo-icon {
    width: 48px;
    height: auto;
    margin-bottom: 1rem;
    background-color: orange;
    padding: 3px;
    /* filter: grayscale(100%) opacity(80%); /* 파란색을 무채색으로 빼고 싶을 때 주석 해제 */
}

/* 폼 헤더 (로고 + 타이틀) 스타일 */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
/* 순수 CSS 플로팅 라벨 구현 */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}
.form-floating input {
    width: 100%;
    padding: 1.6rem 0.75rem 0.6rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-floating input:focus {
    border-color: #f7b733;
}
/* placeholder 텍스트를 투명하게 처리해야 가상 클래스 트릭이 동작합니다 */
.form-floating input::placeholder {
    color: transparent;
}
.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
}
/* 입력창에 포커스가 가거나, 값이 비어있지 않을 때 라벨을 위로 올림 */
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.6rem) translateX(0.15rem);
    opacity: 0.65;
}

/* Checkbox Area */
.remember-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.remember-area label {
    cursor: pointer;
    font-size: 0.95rem;
}
.remember-area input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #f7b733; /* 체크박스 색상 커스텀 (최신 브라우저 지원) */
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background-color: #f7b733;
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-login:hover {
    background-color: #e5a62b;
}

.form-panel {
    background-color: #f8f9fa;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #212529; /* 텍스트는 어둡게 */
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 5. Responsive (태블릿 이하 화면에서 상하 배치로 전환) */
@media (max-width: 768px) {
    .brand-panel, .form-panel {
        flex: 1 1 100%;
    }
    .brand-panel {
        padding: 4rem 2rem;
    }
}

