@charset "utf-8";

/* ===================================
   Login Page — Ocean Dark Theme
   =================================== */

.login-wrapper {
    min-height: calc(100vh - 350px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
    position: relative;
}

/* 홈 버튼 */
.home-button-wrapper {
    width: 100%;
    max-width: 440px;
    margin-bottom: 20px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #162038;
    color: #8B9DC3;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: rgba(0, 229, 255, 0.1);
    color: #00E5FF;
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

.btn-home svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-home:hover svg {
    transform: scale(1.1);
}

/* 컨테이너 */
.login-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* 로그인 카드 */
.login-card {
    background: #162038;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.08);
}

/* 헤더 탭 */
.login-header {
    display: flex;
    background: linear-gradient(135deg, #00E5FF 0%, #00B4D8 50%, #0077B6 100%);
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.login-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    color: rgba(10, 14, 26, 0.6);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-tab.active {
    color: #0A0E1A;
    background: rgba(255, 255, 255, 0.15);
}

.login-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: #0A0E1A;
}

.tab-text {
    position: relative;
    z-index: 1;
}

/* 로그인 바디 */
.login-body {
    padding: 40px 35px;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 20px;
}

/* 입력 그룹 */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #5A6B8A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 48px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0F1628;
    color: #F0F4FF;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #00E5FF;
    background: #0A0E1A;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-input:focus ~ .input-icon,
.input-group:focus-within .input-icon {
    color: #00E5FF;
}

.form-input::placeholder {
    color: #5A6B8A;
}

/* 폼 옵션 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
}

/* 체크박스 */
.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #8B9DC3;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #00E5FF;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background: #0F1628;
}

.checkbox-input:checked ~ .checkbox-label .checkbox-box {
    background: linear-gradient(135deg, #00E5FF, #0077B6);
    border-color: #00E5FF;
}

.checkbox-input:checked ~ .checkbox-label .checkbox-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #0A0E1A;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
}

/* 찾기 링크 */
.find-link {
    font-size: 14px;
    color: #00E5FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.find-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00E5FF;
    transition: width 0.3s ease;
}

.find-link:hover::after {
    width: 100%;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #00E5FF 0%, #00B4D8 50%, #0077B6 100%);
    color: #0A0E1A;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.3);
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:active {
    transform: translateY(0);
}

/* 구분선 */
.login-divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 229, 255, 0.12);
}

.login-divider span {
    position: relative;
    background: #162038;
    padding: 0 16px;
    color: #5A6B8A;
    font-size: 13px;
}

/* 소셜 로그인 */
.social-login-wrap {
    display: flex;
    gap: 10px;
}

.social-login-wrap a {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-login-wrap a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 비회원 카드 */
.guest-card {
    margin-top: 30px;
    padding: 30px;
    background: #162038;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.guest-title {
    font-size: 18px;
    font-weight: 700;
    color: #F0F4FF;
    margin-bottom: 12px;
}

.guest-desc {
    font-size: 14px;
    color: #8B9DC3;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 개인정보 박스 */
.privacy-box {
    background: #0F1628;
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    height: 150px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.8;
    color: #8B9DC3;
    margin-bottom: 20px;
}

.privacy-box::-webkit-scrollbar {
    width: 6px;
}

.privacy-box::-webkit-scrollbar-track {
    background: #0A0E1A;
    border-radius: 3px;
}

.privacy-box::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.2);
    border-radius: 3px;
}

.privacy-box::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.3);
}

/* 동의 박스 */
.agree-box {
    margin-bottom: 24px;
}

/* 비회원 버튼 */
.btn-guest {
    width: 100%;
    height: 52px;
    background: #1C2A4A;
    color: #8B9DC3;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-guest:hover {
    background: rgba(0, 229, 255, 0.08);
    color: #00E5FF;
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

/* 정보 박스 */
.info-box {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 229, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.info-box p {
    font-size: 14px;
    color: #8B9DC3;
    line-height: 1.6;
}

.info-box strong {
    font-weight: 600;
    color: #00E5FF;
}

/* 숨김 */
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-wrapper { padding: 30px 20px; }
    .home-button-wrapper { margin-bottom: 15px; }
    .btn-home { padding: 8px 16px; font-size: 13px; }
    .btn-home svg { width: 16px; height: 16px; }
    .login-body { padding: 30px 25px; }
    .guest-card { padding: 25px; }
}

@media (max-width: 480px) {
    .login-wrapper { padding: 20px 15px; min-height: calc(100vh - 300px); }
    .login-container { max-width: 100%; }
    .login-card { border-radius: 16px; }
    .login-tab { padding: 18px 10px; font-size: 15px; }
    .login-body { padding: 25px 20px; }
    .form-group { margin-bottom: 16px; }
    .form-input { height: 48px; font-size: 14px; padding: 0 16px 0 44px; }
    .input-icon { left: 14px; }
    .input-icon svg { width: 18px; height: 18px; }
    .form-options { margin: 20px 0; }
    .checkbox-box { width: 18px; height: 18px; margin-right: 8px; }
    .checkbox-text, .find-link { font-size: 13px; }
    .btn-login, .btn-guest { height: 48px; font-size: 15px; }
    .login-divider { margin: 24px 0 16px; }
    .social-login-wrap { flex-direction: column; }
    .social-login-wrap a { height: 44px; font-size: 13px; }
    .guest-card { margin-top: 20px; padding: 20px; border-radius: 16px; }
    .guest-title { font-size: 16px; }
    .guest-desc { font-size: 13px; }
    .privacy-box { height: 120px; padding: 16px; font-size: 12px; }
    .info-box { padding: 14px; }
    .info-box p { font-size: 13px; }
}

@media (max-width: 360px) {
    .login-wrapper { padding: 15px 10px; }
    .btn-home { padding: 6px 12px; font-size: 11px; }
    .btn-home svg { width: 12px; height: 12px; }
    .login-tab { padding: 16px 8px; font-size: 14px; }
    .login-body { padding: 20px 15px; }
    .guest-card { padding: 18px 15px; }
}