/* ============================================================================
 * Project : MEDITORIAL (메디토리얼)
 * File    : style.css
 * Desc    : 메인 스타일 시트 (다크모드, 글래스모피즘 및 반응형 UI 디자인)
 * Author  : 메디토리얼 최고경영자(CEO)
 * Year    : 2026
 * ============================================================================ */




/* 1. 기본 테마 설정 */
:root {
    --primary: #00c2cb;
    --bg: #0b0b0b;
    --card: #161616;
    --text: #ffffff;
    --text-dim: #999;
    --transition: 0.3s ease;
}

body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. 네비게이션 (PC/모바일 공통) */
nav {
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* 햄버거 버튼 */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* 3. 섹션 제어 (데이터 안 보임 방지 핵심) */
.section {
    display: none;
    min-height: 70vh;
    padding: 60px 0;
}

.section.active {
    display: block !important;
    animation: fadeIn 0.6s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Hero 섹션 */
.hero {
    /* 화면 높이의 딱 절반(50%)만 차지하도록 설정 */
    height: 50vh;
    min-height: 400px;
    /* 너무 작아지는 걸 방지하기 위한 최소 높이 */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 0;
    margin-bottom: 60px;

    /* 배경 설정 (Home_bg1.avif) */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('Home_bg1.avif');
    background-size: cover;
    background-position: center;

    /* 화면 가로 꽉 채우기 */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero h1 {
    font-size: 3.5rem;
    /* 높이가 줄어든 만큼 글자 크기도 적당히 조절 */
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-top: 10px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        height: 40vh;
    }

    /* 모바일에서는 조금 더 슬림하게 */
    .hero h1 {
        font-size: 2.2rem;
    }
}



/* 5. 포트폴리오 그리드 레이아웃 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 2. 아이템 카드 공통 스타일 */
.item-card {
    background: #191919;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    /* 오버레이 배치를 위해 필수 */
}

.item-card:hover {
    transform: translateY(-5px);
}

/* 3. 썸네일 이미지 설정 */
.item-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    /* 잘림 없이 꽉 차게 */
    transition: 0.5s;
    display: block;
}

.item-card:hover img {
    opacity: 0.6;
    /* 호버 시 이미지를 어둡게 */
}

/* 4. 📍 애니메이션 게시판 전용: 중복 버튼 해결 (CSS 오버레이 방식) */

/* 기존에 있었던 ▶ 문자 스타일(::before, ::after)을 완전히 제거합니다 */
#grid-animation .item-card::before,
#grid-animation .item-card::after {
    content: none !important;
}

/* JavaScript에서 동적으로 생성한 .play-overlay 스타일 (이것만 사용) */
#grid-animation .play-overlay {
    position: absolute;
    top: 40%;
    /* 텍스트 정보를 고려해 살짝 위로 배정 */
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 4rem;
    /* 버튼 크기 */
    color: rgba(255, 255, 255, 0.8);
    /* 기본은 흰색 반투명 */
    opacity: 0;
    /* 기본은 숨김 */
    transition: 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
    /* 클릭 방해 금지 */
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 카드를 호버했을 때 플레이 버튼이 나타남 */
#grid-animation .item-card:hover .play-overlay {
    opacity: 1;
    color: #14b8a6;
    /* 메디토리얼 청록색으로 변경 */
    transform: translate(-50%, -50%) scale(1.1);
    /* 살짝 커지는 효과 */
}

/* 5. 아이템 정보 (제목, 내용) */
.item-info {
    padding: 20px;
}

.item-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: white;
}

.item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}


/* 썸네일 영역을 감싸는 박스 */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000;
    overflow: hidden;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 썸네일이 꽉 차게 */
    transition: 0.5s;
}

/* 마우스 올리면 이미지가 살짝 커지는 효과 */
.item-card:hover .thumbnail-wrapper img {
    transform: scale(1.1);
    opacity: 0.7;
}

/* 재생 버튼 오버레이 (중앙 배치) */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 2;
}

.item-card:hover .play-overlay {
    color: #14b8a6;
    /* 메디토리얼 포인트 컬러 */
    opacity: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}





/* 7. 반응형 설정 */
@media (max-width: 1100px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 11, 11, 0.98);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #222;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.mobile-active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        width: 100%;
        padding: 18px 0;
        text-align: center;
        border-bottom: 1px solid #1a1a1a;
    }

    .hero {
        height: 40vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CONTACT US 섹션 최종 진화형 (style.css)
========================================= */

/* 전용 변수 설정 (테마) */
:root {
    --contact-bg: radial-gradient(circle at center, #111a28 0%, #0a0a0e 100%);
    --teal-glow: 0 0 15px rgba(0, 255, 255, 0.2);
    --panel-border: rgba(0, 255, 255, 0.15);
    --input-border: rgba(255, 255, 255, 0.1);
    --red-accent: #e53935;
    --red-hover: #ff5252;
    --text-muted: #999;
    --text-light: #ddd;
}

/* CONTACT 섹션 배경 */
.contact-section {
    position: relative;
    background: var(--contact-bg) !important;
    overflow: hidden;
}

/* 배경 기하학 와이어프레임 & 와이어프레임 Accents */
.contact-bg-decor {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.wireframe {
    position: absolute;
    opacity: 0.1;
    background-size: contain;
    background-repeat: no-repeat;
}
/* 기하학적 도형 이미지가 있다면 url()에 넣어주세요, 없어도 그라데이션 효과가 깔끔합니다 */
.wf-1 { width: 400px; height: 400px; top: 10%; left: -100px; transform: rotate(-15deg); }
.wf-2 { width: 300px; height: 300px; bottom: 10%; right: -50px; transform: rotate(15deg); }
.light-orb {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* 전체 래퍼 */
.contact-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #fff;
    z-index: 1;
}

/* 상단 헤더 영역 */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}
.contact-header .subtitle { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.contact-header .title { font-size: 3.5rem; font-weight: 800; margin-bottom: 25px; letter-spacing: -1px; }
.contact-header .desc { font-size: 1.15rem; color: var(--text-light); line-height: 1.7; margin-bottom: 30px; }
.contact-header .highlight-text { color: var(--red-accent); font-weight: 700; }

/* PDF 다운로드 (슬릭 테두리) */
.pdf-download-box { margin-bottom: 30px; }
.btn-pdf {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s ease;
}
.btn-pdf .pdf-icon { font-size: 1.5rem; color: var(--red-accent); margin-right: 12px; }
.btn-pdf .pdf-name { font-size: 0.95rem; font-weight: 500; color: #ccc; }
.btn-pdf:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 하단 콘텐츠 (2단 그리드 - 유리 질감 패널) */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* 유리 질감 패널 공통 스타일 */
.contact-panel {
    background: rgba(25, 25, 30, 0.5); /* 유리 패널 색상 */
    backdrop-filter: blur(10px); /* 유리 질감 */
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.panel-header { margin-bottom: 35px; }
.panel-header h3 { font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -0.5px; }

/* 왼쪽 정보 영역 (Info Panel) */
.info-items { margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; }
.info-item .item-icon { font-size: 1.3rem; color: var(--primary); margin-right: 20px; margin-top: 3px; }
.info-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.info-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* 1. 이메일 링크 기본 및 방문 후 색상 고정 (파란색/보라색 완벽 차단) */
.info-item .email-link,
.info-item .email-link:visited {
    color: #ccc !important; /* 📍 다른 텍스트와 어울리는 연한 회색 */
    text-decoration: none !important; /* 촌스러운 밑줄 제거 */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 2. 마우스 올렸을 때 (Hover) 메디토리얼 메인 컬러로 강조 */
.info-item .email-link:hover {
    color: var(--primary) !important; /* 📍 마우스 올리면 Teal 색상으로! */
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4); /* 은은한 네온 빛 번짐 추가 */
}

.info-item .item-icon {
    font-size: 1.3rem;
    color: var(--primary); /* Teal 색상 */
    margin-right: 20px;
    margin-top: 5px; /* 글자 높이와 맞추기 위한 미세 조정 */
}

.social-links-container .social-icons .social-btn,
.social-links-container .social-icons .social-btn:visited {
    display: inline-flex !important; /* 📍 가로 정렬 강제 */
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #ccc !important; /* 📍 방문 후에도 회색 유지 */
    text-decoration: none !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
    margin-right: 10px; /* 아이콘 사이 간격 */
}

/* 2. 마우스 올렸을 때 (Hover) - 공통 효과 */
.social-links-container .social-icons .social-btn:hover {
    transform: translateY(-3px) !important;
    background-color: rgba(0, 255, 255, 0.1) !important; /* 은은한 틸 배경 */
    border-color: var(--primary) !important; /* 틸 색상 테두리 */
    color: #fff !important; /* 아이콘은 흰색으로 또렷하게 */
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3) !important; /* 틸 색상 네온 빛 번짐 */
}


/* 오른쪽 입력 폼 영역 (Form Panel) */
.form-panel { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #aaa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* 업그레이드된 입력창 스타일 */
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #555; font-size: 0.95rem; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: var(--teal-glow);
    background: rgba(0, 0, 0, 0.3);
}

/* Send 버튼 (Sleek Red) */
.btn-send-advanced {
    width: 100%;
    background-color: var(--primary); /* 📍 메인 컬러(Teal)로 변경 */
    color: #000; /* 📍 밝은 배경에 맞춰 글자색을 까맣게 (가독성 UP) */
    border: none;
    border-radius: 12px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 800; /* 📍 로그인 버튼처럼 굵고 단단하게 */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.2); /* 은은한 틸 색상 그림자 */
    margin-top: 15px;
}

.btn-send-advanced:hover { 
    background-color: #00e0eb; /* 호버 시 더 밝은 네온 틸 색상 */
    color: #000; /* 깜빡임 방지 */
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0, 194, 203, 0.4); /* 틸 색상 빛 번짐 */
}

.btn-send-advanced:active { 
    transform: translateY(1px); 
}
/* 모바일 반응형 */
@media (max-width: 900px) {
    .contact-wrapper { padding: 60px 20px; }
    .contact-header .title { font-size: 2.8rem; }
    .contact-content { grid-template-columns: 1fr; gap: 30px; }
    .contact-panel { padding: 30px; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
}


/* 8. Contact & Auth Box */
.contact-box {
    background: var(--card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
    max-width: 500px;
    margin: 0 auto;
}

input,
textarea,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin-bottom: 15px;
    background: #0b0b0b;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    /* 📍 background 대신 background-color 사용 */
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    /* 📍 애니메이션 대상을 배경색과 그림자로 정확히 지정 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    background-color: #00e0eb;
    color: #000;
    /* 📍 호버 시에도 글자색 검은색 유지 (깜빡임 완벽 차단) */
    box-shadow: 0 0 20px rgba(0, 194, 203, 0.4);
}

/* 9. 카카오톡 버튼 */
#kakao-talk-channel-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    text-decoration: none;
}

.kakao-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee500;
    /* 카카오 고유색 */
    color: #191919;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.kakao-btn:hover {
    transform: scale(1.05);
    background: #fada00;
}

.kakao-btn img {
    width: 25px;
    height: 25px;
}

/* 모바일에서는 조금 더 작게 */
@media (max-width: 768px) {
    #kakao-talk-channel-chat-button {
        bottom: 20px;
        right: 20px;
    }

    .kakao-btn span {
        display: none;
    }

    /* 모바일은 아이콘만 표시 */
    .kakao-btn {
        padding: 12px;
    }
}

/* --- [완전체] 로그인/회원가입 디자인 --- */

/* 1. 인증 섹션 (강제 중앙 정렬) */
.auth-section {
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    min-height: 600px;
    padding: 80px 0;
    margin: 0 auto !important;
    background: #0a0a0a;
}

.auth-section.active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 2. 전체 래퍼 */
.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 450px;
    margin: 0 auto !important;
}

/* 3. 배경 장식 (상자 뒤로 숨기고, 강제로 둥글고 뿌옇게 만듦) */
.auth-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* 박스보다 뒤에 위치 */
}

.circle {
    position: absolute !important;
    border-radius: 50% !important;
    /* 사각형 방지 */
    filter: blur(80px) !important;
    /* 빛 번짐 효과 */
}

.circle-1 {
    width: 250px;
    height: 250px;
    background: rgba(20, 184, 166, 0.25);
    /* Teal 빛 */
    top: -20px;
    left: -20px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(251, 189, 8, 0.15);
    /* Gold 빛 */
    bottom: -20px;
    right: -20px;
}

/* 4. 컨테이너 (배경 빛보다 앞에 오도록 설정) */
.auth-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    z-index: 1;
}

/* 5. 폼 상자 (글래스모피즘, 가운데 쏠림 방지) */
.auth-box {
    box-sizing: border-box;
    /* 크기 계산 오류 방지 */
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 25, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease-in-out, opacity 0.6s;
}

.login-box {
    border: 1px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.08);
    z-index: 2;
}

.register-box {
    border: 1px solid rgba(251, 189, 8, 0.2);
    transform: rotateY(180deg);
    opacity: 0;
    z-index: 1;
}

.auth-container.signup-mode .login-box {
    transform: rotateY(-180deg);
    opacity: 0;
    z-index: 1;
}

.auth-container.signup-mode .register-box {
    transform: rotateY(0deg);
    opacity: 1;
    z-index: 2;
}

/* 6. 내부 컨텐츠 영역 */
.auth-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto !important;
    /* 강제 가운데 정렬 */
    text-align: center;
}

.auth-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.auth-guide {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #aaa;
}

.icon-warm {
    color: #fbbd08 !important;
    /* 노란색(Gold) 강제 적용 */
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

/* 7. 입력창 그룹 */
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-group input {
    box-sizing: border-box;
    /* 쏠림 방지 핵심! */
    width: 100%;
    padding: 15px 15px 15px 55px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid #333;
    border-radius: 10px;
    font-size: 0.95rem;
    color: white;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
    outline: none;
}

.group-warm input:focus {
    border-color: #fbbd08;
    box-shadow: 0 0 10px rgba(251, 189, 8, 0.2);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #666;
}

/* 8. 버튼 */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #109688);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.4s;
    margin-top: 10px;
}

.btn-warm {
    background: linear-gradient(135deg, #fbbd08, #e0a800);
}


/* 노란색(회원가입) 버튼 전용 마우스 호버 효과 추가 */
.btn-warm:hover {
    background: linear-gradient(135deg, #e0a800, #c69500) !important;
    /* 더 진한 황금색으로 */
    box-shadow: 0 0 15px rgba(251, 189, 8, 0.4) !important;
    /* 노란색 빛 번짐 */
}

/* 9. 하단 스위치 텍스트 (밑줄 포함) */
.auth-switch {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

.primary-text,
.warm-text {
    font-weight: 600;
    text-decoration: underline;
    /* 누르고 싶게 만드는 밑줄 */
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.3s;
}

.primary-text {
    color: var(--primary);
}

.warm-text {
    color: #fbbd08;
}

.primary-text:hover,
.warm-text:hover {
    color: white;
}



/* --- 고급 커스텀 얼럿창 스타일 --- */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* 배경 어둡게 */
    backdrop-filter: blur(5px);
    /* 배경 블러 처리 */
    z-index: 9999;
    /* 화면 맨 앞으로 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* 창이 뜰 때(show) 애니메이션 */
.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 16px;
    padding: 35px 40px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(20, 184, 166, 0.1);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease;
}

.custom-alert-overlay.show .custom-alert-box {
    transform: translateY(0) scale(1);
}

.custom-alert-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

#custom-alert-message {
    color: white;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 30px;
    word-break: keep-all;
    /* 한글 줄바꿈 예쁘게 */
}

/* 확인 버튼 */
.btn-alert-confirm {
    background-color: var(--primary);
    color: #000;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-alert-confirm:hover {
    background-color: #00e0eb;
    box-shadow: 0 0 20px rgba(0, 194, 203, 0.4);
}

/* footer 기본 스타일 */
footer {
    text-align: center;
    padding: 80px 0;
    color: #444;
    border-top: 1px solid #111;
    font-size: 0.85rem;
}

/* SNS 영역 */
footer .sns-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
    border-top: 1px solid #222;
    margin-top: 60px;
}

/* SNS 아이콘 */
footer .sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
}

/* hover 효과 */
footer .sns-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* 아이콘 이미지 */
footer .sns-icon img {
    height: 30px;
    width: auto;
}

/* --- 브라우저 자동완성(Autofill) 하얀색 배경 강제 제거 (강력 버전) --- */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    /* 1. 어두운 배경 강제 주입 */
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;

    /* 2. 글자색 흰색 강제 */
    -webkit-text-fill-color: white !important;

    /* 3. 테두리 유지 (원하시면 유지, 아니면 삭제) */
    border: 1px solid #333 !important;

    /* 4. 깜빡이는 커서(캐럿) 색상도 흰색으로 강제 (꿀팁!) */
    caret-color: white !important;

    /* 5. 배경색 전환 지연 방어막 강화 */
    transition: background-color 5000s ease-in-out 0s !important;

}