/* 로그인 페이지 전용 스타일 */
/* 페이지 스크롤 비활성화 (로그인 전용) */
html, body {
    min-height: 100vh;
    min-height: 100svh; /* 스몰 뷰포트 높이 지원 */
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden; /* 가로 스크롤만 막기 */
    overflow-y: auto; /* 세로 스크롤 허용으로 변경 */
}

/* 로그인 폼 레이아웃 최적화 */
.auth-form-container form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto; /* flex 속성 개선 */
    min-height: 0; /* flexbox 버그 해결 */
}

/* 비밀번호 찾기 링크 */
.forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password a {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #141428;
}

/* 소셜 로그인 섹션 */
.social-login-section {
    margin-top: auto; /* 다시 auto로 변경하여 하단에 고정 */
    padding-top: 16px;
    width: 100%;
    flex-shrink: 0; /* 축소 방지 */
    position: relative; /* 위치 안정성 추가 */
    z-index: 15; /* z-index 추가 */
}

.social-login-divider {
    text-align: center;
    margin: 16px 0;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #666;
    position: relative;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #d8dadc;
}

.social-login-divider::before {
    left: 0;
}

.social-login-divider::after {
    right: 0;
}

/* 소셜 아이콘 그리드 */
.social-icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.social-icon-btn {
    flex: 1;
    min-width: 50px;
    max-width: 80px;
    height: 56px;
    border: 1px solid #d8dadc;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-icon-btn.kakao {
    background: #FEE500;
    border-color: #FEE500;
}

.social-icon-btn.line {
    background: #00C300;
    border-color: #00C300;
}

.social-icon-btn img {
    width: 24px;
    height: 24px;
}

/* 회원가입 링크 */
.signup-link {
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-bottom: 12px;
    flex-shrink: 0; /* 축소 방지 */
}

.signup-link a {
    color: #141428;
    text-decoration: none;
    font-weight: 500;
}

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

/* 작은 화면에서 레이아웃 최적화 */
@media (max-width: 375px) {
    .social-login-section {
        padding-top: 8px;
    }
    
    .social-login-divider {
        margin: 12px 0;
        font-size: 13px;
    }
    
    .social-icons-grid {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .social-icon-btn {
        min-width: 45px;
        max-width: 70px;
        height: 50px;
    }
    
    .social-icon-btn img {
        width: 20px;
        height: 20px;
    }
    
    .signup-link {
        font-size: 13px;
        margin-top: 8px;
        padding-bottom: 8px;
    }
    
    .btn-primary {
        margin-bottom: 12px;
        height: 48px;
        font-size: 16px;
    }
    
    .forgot-password {
        margin-bottom: 12px;
        font-size: 13px;
    }
    
    .auth-input-group {
        gap: 12px;
    }
}

/* 작은 화면 높이 대응 */
@media (max-height: 700px) and (max-width: 375px) {
    /* 아이폰 SE 같은 667px 높이 대응 */
    .auth-input-group > div {
        margin-bottom: 8px;
    }
    
    .input-field {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 44px;
        padding: 10px 16px;
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .social-icon-btn {
        height: 45px;
    }
    
    .forgot-password {
        margin-bottom: 8px;
    }
}

@media (max-height: 640px) and (max-width: 360px) {
    /* LG V20 같은 640px 높이 대응 */
    .auth-input-group > div {
        margin-bottom: 6px;
    }
    
    .input-field {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn-primary {
        height: 42px;
        padding: 8px 14px;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .social-icon-btn {
        height: 42px;
        min-width: 42px;
        max-width: 65px;
    }
    
    .social-login-divider {
        margin: 10px 0;
        font-size: 12px;
    }
    
    .signup-link {
        font-size: 12px;
        margin-top: 6px;
        padding-bottom: 6px;
    }
} 