/* Google Fonts - Vibeow 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 스크롤바 스타일 - 보라색 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--gray-100);
}

:root {
    /* VIBEOW MODERN COLOR SYSTEM */
    /* Primary: Purple Vibes - Modern, Energetic, Young */
    --primary: #6B5EFF;
    --primary-dark: #5648CC;
    --primary-light: #8B7EFF;
    --primary-lighter: #A99EFF;
    --primary-pale: #E5E0FF;

    /* Background Colors */
    --bg-main: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    /* Gray Scale */
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    /* Accent Colors */
    --accent-blue: #8B7EFF;
    --accent-mint: #85D9D0;
    --accent-pink: #FF85D4;
    --accent-orange: #FFB870;

    /* Light Shadow System */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.10);
    --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-purple: linear-gradient(135deg, #6B5EFF 0%, #8B7EFF 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 로그인 섹션 */
.login-section {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* 좌측 정보 패널 */
.login-info {
    position: relative;
}

.login-badge {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: var(--primary-pale);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid rgba(107, 94, 255, 0.20);
    animation: fadeInUp 0.6s ease;
}

.login-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* 환영 메시지 */
.welcome-message {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1.25rem;
    border: 2px solid rgba(59, 130, 246, 0.15);
    box-shadow: var(--shadow-lg);
}

.welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.welcome-message h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.welcome-message p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* 특장점 하이라이트 */
.feature-highlight {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(107, 94, 255, 0.05) 0%, rgba(107, 94, 255, 0.1) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(107, 94, 255, 0.15);
}

.highlight-item {
    text-align: center;
    flex: 1;
}

.highlight-number {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 600;
}

.highlight-divider {
    width: 1px;
    height: 3rem;
    background: linear-gradient(180deg, transparent 0%, rgba(107, 94, 255, 0.3) 50%, transparent 100%);
}

/* 주요 혜택 */
.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid rgba(107, 94, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-purple);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.benefit-item:hover::before {
    transform: scaleY(1);
}

.benefit-item:hover {
    background: rgba(107, 94, 255, 0.05);
    border-color: rgba(107, 94, 255, 0.3);
    transform: translateX(12px);
    box-shadow: 0 4px 16px rgba(107, 94, 255, 0.15);
}

.benefit-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.3s ease;
}

.benefit-item:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.benefit-item:hover svg circle {
    stroke: var(--primary);
    stroke-width: 2.5;
}

.benefit-item:hover svg path {
    stroke: var(--primary);
    stroke-width: 2.5;
}

.benefit-item span {
    font-size: 1.0625rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
    flex: 1;
}

/* 우측 로그인 폼 */
.login-form-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.3s both;
    padding: 2.5rem;
    min-width: 600px;
}

.user-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--gray-100);
    padding: 0.75rem;
    gap: 0.75rem;
    border-radius: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.875rem;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tab-btn > * {
    position: relative;
    z-index: 1;
}

.tab-btn svg {
    stroke: var(--gray-600);
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.tab-btn.active {
    background: var(--gradient-purple);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px -4px rgba(107, 94, 255, 0.4);
    transform: translateY(-2px);
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-btn.active svg {
    stroke: white;
}

.tab-btn:hover:not(.active) {
    background: var(--primary-pale);
    border-color: rgba(107, 94, 255, 0.3);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(107, 94, 255, 0.2);
}

.tab-btn:hover:not(.active) svg {
    stroke: var(--primary);
}

.tab-btn:active {
    transform: translateY(0);
}

/* 로그인 폼 */
.login-form {
    display: none;
    padding: 2.5rem 1.5rem;
}

.login-form.active {
    display: block;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header .form-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-header .form-icon svg {
    filter: drop-shadow(0 4px 12px rgba(107, 94, 255, 0.25));
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 94, 255, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 8px 24px rgba(107, 94, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5648CC 0%, #6B5EFF 100%);
    box-shadow: 0 12px 32px rgba(107, 94, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background: var(--gray-100);
    color: var(--text-primary);
    border-color: var(--gray-400);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.form-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.form-buttons .btn {
    flex: 1;
    max-width: 160px;
    justify-content: center;
}

.form-buttons .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-links .link {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links .link:hover {
    color: var(--primary);
}

.form-links .divider {
    color: var(--gray-300);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 2rem;
}

.modal-footer .btn {
    flex: 1;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .login-info {
        text-align: center;
    }

    .login-features {
        max-width: 600px;
        margin: 0 auto;
    }

    .feature-item:hover {
        transform: translateY(-4px);
    }

    .login-form-container {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 8rem 0 4rem;
    }

    .login-title {
        font-size: 2.25rem;
    }

    .login-description {
        font-size: 1rem;
    }

    .login-form-container {
        padding: 1.5rem;
    }

    .login-form {
        padding: 1.5rem 1rem;
    }

    .user-type-tabs {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .login-title {
        font-size: 1.875rem;
    }

    .form-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-links .divider {
        display: none;
    }
}

/* 추가 모바일 최적화 */
@media (max-width: 768px) {
    /* 입력 필드 iOS zoom 방지 */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"] {
        font-size: 16px !important;
    }

    /* 버튼 터치 영역 확대 */
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }

    .tab-btn {
        min-height: 48px;
        padding: 12px 20px;
    }

    /* 체크박스 터치 영역 확대 */
    .checkbox-label {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    /* 링크 터치 영역 확대 */
    .form-links a {
        padding: 12px 8px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* 모달 닫기 버튼 터치 영역 */
    .modal-close {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    /* 사용자 유형 탭 개선 */
    .user-type-tabs {
        gap: 12px;
    }

    .tab-btn {
        border-radius: 12px;
    }

    /* 로그인 섹션 여백 조정 */
    .login-section {
        padding: 40px 0;
    }

    /* 폼 간격 개선 */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        margin-bottom: 8px;
        font-size: 15px;
    }
}

/* 가로 모드 대응 */
@media (max-width: 768px) and (orientation: landscape) {
    .login-section {
        padding: 20px 0;
    }

    .login-wrapper {
        max-height: 90vh;
        overflow-y: auto;
    }

    .login-info {
        display: none;
    }

    .login-form-container {
        max-width: 100%;
    }
}
