/* 로그인 컨테이너 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    min-height: calc(100vh - 160px);
    padding: 20px;
    background-color: #131217;
}

.login-box {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* 로그인 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    display: block;
    margin: 0 auto 10px auto;
}

.login-header p {
    color: #FFF;
    font-size: 14px;
    font-weight: 400;
}

/* 로그인 폼 */
.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

/* 이메일 그룹 스타일 */
.email-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-group input[type="text"] {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #202020;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.email-group input[type="text"]::placeholder {
    color: #888;
}

.email-at {
    color: #FFF;
    font-size: 16px;
}

/* 커스텀 드롭다운 스타일 */
.custom-dropdown {
    flex: 1;
    position: relative;
}

.dropdown-selected {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #202020;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-selected:focus {
    outline: none;
}

.dropdown-arrow {
    transition: transform 0.3s;
    width: 12px;
    height: 8px;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #202020;
    border: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-options.open {
    display: block;
}

.dropdown-option {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    color: white;
}

.dropdown-option:hover {
    background-color: #333;
}

.dropdown-option.selected {
    background-color: #1a5490;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #202020;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: #888;
}

.form-group input:focus,
.email-group input[type="text"]:focus {
    outline: none;
}

/* 폼 옵션 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #FFF;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #CECECE;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.checkbox-label input[type="checkbox"]:checked {
    border-radius: 3px;
    border: none;
    background-color: #1a5490;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.find-password {
    color: #FFF;
    text-decoration: none;
    font-size: 14px;
}

.find-password:hover {
    text-decoration: underline;
}

/* 로그인 버튼 */
.btn-login-submit {
    width: 100%;
    padding: 15px;
    background: #3F3FF5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login-submit:hover {
    background-color: #144170;
}

.btn-login-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 회원가입 링크 */
.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 25px;
}

.signup-link a {
    color: #FFF;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* 에러 메시지 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 로딩 스피너 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1a5490;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}