/* style.css */
:root {
    --bg-color: #222;
    --dialog-bg: rgba(34, 34, 34, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --primary-color: #4f46e5;
    --primary-hover: #6366f1;
    --border-color: rgba(255, 255, 255, 0.1);
}

/* 일반적인 버튼 스타일 */
.btn {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* a 태그 리셋 */
}

.primary-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), #9ca3af);
}

.secondary-btn {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.close-btn {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #fe6d06;
}

/* -------------------------------------
   Pure CSS 다이얼로그 구현 (.modal-wrapper)
   ------------------------------------- */

.modal-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1010;

    /* 기본 상태는 완전히 투명하게 숨김 */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* 앵커(a) 태그의 href="#"이나 "#pureDialog"를 통해 URL 해시가 일치할 때 표시됨 */
.modal-wrapper:target {
    visibility: visible;
    opacity: 1;
}

/* 오버레이 (Backdrop) 영역.
   이 영역은 a 태그로 되어 있으며 클릭하면 빈 해시(#)로 URL을 전환해 모달을 닫음 */
.dialog-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
	/*
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); */
}

/* 실제 다이얼로그 창 (Dialog Content) */
.dialog {
    position: relative; /* 오버레이 위에 배치 */
    z-index: 1011;

    border: 1px solid var(--border-color);
    background: var(--dialog-bg);
    color: var(--text-primary);
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* 열릴 때 아래에서 위로 올라오는 애니메이션 적용 */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    display: flex;
    flex-direction: column;
}

/* 타겟 상태일 때 올라오는 애니메이션 실행 */
.modal-wrapper:target .dialog {
    transform: translateY(0) scale(1);
}

/* 내부 레이아웃 꾸미기 */
.dialog-header {
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dialog-content { display: flex; justify-content: center; align-items: center; padding: 0 0 20px; flex-direction: column; }
.dialog-content .cont-logo { display: flex; }
.dialog-content .cont-logo img { width: 100%; }


.form-wrap { display: block; width: 100%; }

.textform { display: block; padding: 20px 20px 0; }
.textform .form-type { width: 100%; height: 44px; background: #333; margin: 10px 0 0; padding: 0; }
.textform .form-type input:focus { border: 1px #ffa305 solid; }

input { width: 100%; height: 100%; font-size: 14px; font-weight: bold; color: #fff; padding: 0 10px 0; }

.textform .cs-txt { padding: 10px 0 0; color: #fff; text-align: left; }
.textform .btm { margin: 20px 0 0; }
.textform .btm button { width: 100%; padding: 8px 0; color: #222; font-size: 12px; font-weight: bold; margin: 0 0 10px; }
.textform .btm button:last-child { margin: 0; }
.textform .btm .cs-txt { padding: 10px 0; color: #fff; text-align: left; }
.textform .btm .cs-txt span { background: linear-gradient(180deg, #ffd900, #fe6d06); background-clip: text; color: transparent; cursor: pointer; }
.textform .btm .cs-txt .csb { text-align: center; font-size: 14px; padding: 0; }

















