/* 메인 컨테이너 */
.main-container {
    max-width: 781px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 로그인 카드 컨테이너 */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #db1e62 0%, #cf1a58 100%);
}

/* 로그인 방식 선택 탭 */
#login_method {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    position: relative;
}

#login_method span {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

#login_method #method1 { 
    color: #ffffff;
    background: linear-gradient(135deg, #db1e62 0%, #cf1a58 100%);
    box-shadow: 0 2px 8px rgba(219, 30, 98, 0.3);
}

#login_method #method2 { 
    color: #718096;
    background: transparent;
}

#login_method span:hover {
    color: #4a5568;
}

#login_method #method1:hover {
    color: #ffffff;
}

/* 입력 필드 그룹 */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    z-index: 2;
}

.login-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #db1e62;
    box-shadow: 0 0 0 3px rgba(219, 30, 98, 0.1);
}

.login-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* 로그인 버튼 */
.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #db1e62 0%, #cf1a58 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(219, 30, 98, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button i {
    margin-right: 6px;
}

/* 체크박스 영역 */
.checkbox-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0!important;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, #db1e62 0%, #cf1a58 100%);
    border-color: #db1e62;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

/* 자동로그인 안내 */
.advice-text {
    display: none;
    background: #fef5e7;
    border: 1px solid #f6ad55;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #744210;
    line-height: 1.5;
}

.showMask {
    color: #db1e62;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.showMask:hover {
    color: #c2185b;
}

/* 도움말 팝업 */
.help-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 450px;
    width: 90vw;
}

.help-popup p {
    padding: 24px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
}

.help-popup strong {
    color: #000;
    cursor: pointer;
    font-weight: 600;
}

/* 마스크 오버레이 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* 링크 스타일 */
.login-card a {
    color: #db1e62;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-card a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* 안내 메시지 */
.notice_text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* 반응형 */
@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
    }
    
    .login-card {
        margin: 10px;
        padding: 20px;
    }
    
    .checkbox-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
