/* Google Fonts - 고급스러운 세리프 느낌 추가 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* 로컬 폰트 정의 */
@font-face {
    font-family: 'Pretendard';
    font-weight: 300;
    src: local('Pretendard Light'), local('Malgun Gothic'), local('맑은 고딕');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 400;
    src: local('Pretendard'), local('Malgun Gothic'), local('맑은 고딕');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 600;
    src: local('Pretendard SemiBold'), local('Malgun Gothic Bold'), local('맑은 고딕');
}

@font-face {
    font-family: 'Pretendard';
    font-weight: 700;
    src: local('Pretendard Bold'), local('Malgun Gothic Bold'), local('맑은 고딕');
}

/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 스크롤바 스타일 - 골드 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fafaf9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ca8a04 0%, #a16207 100%);
    border-radius: 5px;
    border: 2px solid #fafaf9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a16207 0%, #854d0e 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #ca8a04 #fafaf9;
}

:root {
    /* SOPHISTICATED SERENITY 3-COLOR SYSTEM */
    /* Primary: Deep Navy/Slate - Trust, Professionalism, Depth */
    --primary-50: #f8fafc;
    --primary-100: #f1f5f9;
    --primary-200: #e2e8f0;
    --primary-300: #cbd5e1;
    --primary-400: #94a3b8;
    --primary-500: #64748b;
    --primary-600: #475569;
    --primary-700: #334155;
    --primary-800: #1e293b;
    --primary-900: #0f172a;
    --primary-950: #020617;

    /* Accent: Gold/Amber - Premium, Luxury, Excellence */
    --accent-50: #fefce8;
    --accent-100: #fef9c3;
    --accent-200: #fef08a;
    --accent-300: #fde047;
    --accent-400: #facc15;
    --accent-500: #eab308;
    --accent-600: #ca8a04;
    --accent-700: #a16207;
    --accent-800: #854d0e;
    --accent-900: #713f12;

    /* Success: Sage Green - Growth, Calm, Nature */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #d1f4e0;
    --success-300: #9fd9b8;
    --success-400: #6dbe90;
    --success-500: #52a378;
    --success-600: #3d8860;
    --success-700: #2d6d4a;
    --success-800: #1f5235;
    --success-900: #163d27;

    /* Premium Warm Neutral Palette */
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    --gray-950: #0c0a09;

    /* Premium Shadow System - Soft, Luxurious */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.06);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.20);
    --shadow-premium: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(202, 138, 4, 0.10);
    --shadow-gold: 0 10px 30px -5px rgba(202, 138, 4, 0.25), 0 0 0 1px rgba(202, 138, 4, 0.10);

    /* Elegant Gradient System */
    --gradient-primary: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-800) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-600) 0%, var(--success-800) 100%);
    --gradient-premium: linear-gradient(135deg, var(--primary-900) 0%, var(--accent-700) 50%, var(--primary-800) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(202, 138, 4, 0.03) 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ca8a04 50%, #a16207 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Sophisticated Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(202, 138, 4, 0.12);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(202, 138, 4, 0.20);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Noto Serif KR', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-900);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-700);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav a {
    font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: -0.01em;
    padding: 0.75rem 0.875rem;
    border-radius: 10px;
    white-space: nowrap;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-gold);
    transition: transform 0.3s ease;
}

.nav a:hover {
    color: var(--accent-700);
}

.nav a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav a.nav-cta {
    background: var(--gradient-gold);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

.nav a.nav-cta::before {
    display: none;
}

.nav a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(202, 138, 4, 0.35);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
}

/* 로그인 섹션 */
.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: linear-gradient(135deg, rgba(202, 138, 4, 0.08) 0%, rgba(161, 98, 7, 0.08) 100%);
    color: var(--accent-700);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid rgba(202, 138, 4, 0.20);
    animation: fadeInUp 0.8s ease;
}

.login-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-gold);
    -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(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 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(59, 130, 246, 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: 1rem;
    border: 2px solid rgba(202, 138, 4, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-600) 0%, var(--accent-700) 100%);
    transform: scaleY(0);
    transition: transform 0.35s ease;
}

.benefit-item:hover::before {
    transform: scaleY(1);
}

.benefit-item:hover {
    background: linear-gradient(135deg, rgba(202, 138, 4, 0.03) 0%, rgba(202, 138, 4, 0.08) 100%);
    border-color: rgba(202, 138, 4, 0.3);
    transform: translateX(12px);
    box-shadow: 0 8px 24px -6px rgba(202, 138, 4, 0.2);
}

.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(--accent-600);
    stroke-width: 2.5;
}

.benefit-item:hover svg path {
    stroke: var(--accent-600);
    stroke-width: 2.5;
}

.benefit-item span {
    font-size: 1.0625rem;
    color: var(--gray-800);
    font-weight: 600;
    line-height: 1.6;
    flex: 1;
}

/* 우측 로그인 폼 */
.login-form-container {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.4s 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: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    opacity: 0;
    transition: opacity 0.35s 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: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    color: white;
    border-color: var(--primary-700);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.4),
                0 4px 12px -2px rgba(15, 23, 42, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-btn.active svg {
    stroke: white;
}

.tab-btn:hover:not(.active) {
    background: var(--accent-50);
    border-color: var(--accent-300);
    color: var(--primary-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(202, 138, 4, 0.2);
}

.tab-btn:hover:not(.active) svg {
    stroke: var(--accent-600);
}

.tab-btn:active {
    transform: translateY(0);
}

/* 로그인 폼 */
.login-form {
    display: none;
    padding: 2.5rem 1.5rem;
}

.login-form.active {
    display: block;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--gray-500);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    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: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--gray-900);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: white;
    border-color: var(--accent-600);
    box-shadow: 0 0 0 4px rgba(202, 138, 4, 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;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: white;
    box-shadow: 0 10px 30px -5px rgba(51, 65, 85, 0.35), 0 0 0 1px rgba(51, 65, 85, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 15px 40px -5px rgba(51, 65, 85, 0.5),
                0 10px 20px -6px rgba(51, 65, 85, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-800);
    border: 2px solid var(--primary-700);
    box-shadow: 0 4px 16px 0 rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover {
    background: var(--primary-800);
    color: white;
    border-color: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.form-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.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(--accent-700);
}

.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: 1.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-2xl);
    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(--gray-900);
}

.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;
    }
}
