:root {
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --secondary-color: #3b82f6;
    --secondary-hover: #2563eb;
    --accent-orange: #f59e0b;
    --accent-orange-hover: #d97706;
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --dark-color: #1e293b;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;

    position: relative;
}



.container {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
}

h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 32px;
    word-break: keep-all;
}

.room-info {
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   통합 공통 버튼 컴포넌트 (Design System Button Component)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: var(--transition-fast);
    outline: none;
    user-select: none;
    box-sizing: border-box;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* 버튼 테마 색상 변형 수식어 (Modifiers) */
.btn-primary,
.submit-btn,
.rooms-modal-submit-btn,
.onboarding-submit-btn,
.drawer-submit-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: transparent;
}

.btn-primary:hover,
.submit-btn:hover,
.rooms-modal-submit-btn:hover,
.onboarding-submit-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-secondary,
.btn-blue {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover,
.btn-blue:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-orange {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.btn-orange:hover {
    background-color: var(--accent-orange-hover);
}

.btn-teal {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-teal:hover {
    background-color: var(--primary-hover);
}

.btn-emerald,
.btn-green {
    background-color: var(--accent-emerald);
    color: #ffffff;
}

.btn-emerald:hover,
.btn-green:hover {
    background-color: var(--accent-emerald-hover);
}

.btn-danger {
    background-color: var(--danger-color);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(13, 148, 136, 0.1);
}

/* 버튼 크기 변형 수식어 */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-block,
.w-100 {
    width: 100%;
}

/* ==========================================================================
   통합 폼 입력 컨트롤 컴포넌트 (Design System Form Controls)
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select option {
    background-color: #1e293b;
    color: #f8fafc;
}

select option:disabled {
    background-color: #0f172a;
    color: #64748b;
}

/* ==========================================================================
   공통 유틸리티 클래스 (Layout & Display Utilities)
   ========================================================================== */
.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color);
}

/* ==========================================
 * [BUG-UX-011] 폼 입력 예외 및 오류 시 포커스 시각성
 * ========================================== */
.is-invalid, input:invalid:focus, select:invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}