@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@master/nanumsquare.css');

/* ===== 초기 설정 ===== */
* { box-sizing: border-box; }
html {overflow-y:scroll}
body {margin:0;padding:0;line-height:1.5;letter-spacing:-0.02em;font-size:14px;color:#111;font-family:'nanumsquare',sans-serif;background:#000;}
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0; padding:0; border:0;}
h1, h2, h3, h4, h5, h6 {font-size:1em; font-weight:inherit;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block;}
label, input, button, select, img {vertical-align:middle}
input, button {margin:0; padding:0; font-size:1em; font-family:inherit;}
button {cursor:pointer}
textarea, select {font-size:1em;}
select {margin:0;}
p {margin:0; padding:0;}
a:link, a:visited {color:#111;text-decoration:none}
a:hover, a:focus, a:active {text-decoration:none;}
ul,li,ol,dt,dd{padding:0;margin:0;list-style:none}

/* ===== Adult certification 레이아웃 ===== */
#sub_wrap {
    position:relative;
    min-height:100vh;
    background:#000;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:32px 20px;
}
.ag-shell {
    display:grid;
    grid-template-columns:1fr 1fr;
    max-width:860px;
    width:100%;
    border-radius:16px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 20px 60px rgba(0,0,0,0.5);
}

/* ----- 왼쪽 : 브랜딩 (블랙) ----- */
.ag-left {
    background:#051a12;
    padding:44px 34px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:560px;
    position:relative;
}
.ag-badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid rgba(255,249,0,0.45);
    border-radius:20px;
    padding:5px 13px;
    font-size:10px;
    color:#fff900;
    font-weight:800;
    letter-spacing:1.5px;
    margin-bottom:24px;
}
.ag-badge::before {
    content:'';
    display:inline-block;
    width:5px;
    height:5px;
    border-radius:50%;
    background:#fff900;
}
.ag-main-title {
    font-size:28px;
    font-weight:700;
    color:#f2f2ee;
    line-height:1.35;
    margin-bottom:12px;
}
.ag-main-title span { color:#fff900; }
.ag-sub-text {
    font-size:13px;
    color:rgba(220,224,210,0.55);
    line-height:1.8;
    margin-bottom:28px;
    text-align:left;
    word-break:keep-all;
}
.ag-warn-box {
    border:1px solid rgba(255,249,0,0.22);
    border-radius:10px;
    padding:16px 18px;
    background:rgba(255,249,0,0.05);
}
.ag-warn-title {
    font-size:12px;
    font-weight:700;
    color:#fff900;
    margin-bottom:8px;
    text-align:left;
}
.ag-warn-text {
    font-size:11px;
    color:rgba(220,224,210,0.5);
    line-height:1.7;
    text-align:left;
    word-break:keep-all;
}
.ag-warn-text strong { color:rgba(255,249,0,0.8); }
.ag-19plus {
    position:absolute;
    bottom:26px;
    right:30px;
    font-size:54px;
    font-weight:800;
    color:rgba(255,249,0,0.08);
    letter-spacing:-2px;
    line-height:1;
    pointer-events:none;
}

/* ----- 오른쪽 : 로그인 · 인증 폼 (라이트) ----- */
.ag-right {
    background:#f7f7f5;
    padding:44px 34px;
    display:flex;
    flex-direction:column;
}
.ag-eyebrow {
    font-size:10px;
    letter-spacing:2px;
    color:#111; font-weight:800;
    margin-bottom:6px;
}
.ag-form-title {
    font-size:22px;
    font-weight:700;
    color:#1a1a18;
    margin-bottom:8px;
}
.ag-form-desc {
    font-size:13px;
    color:#888;
    line-height:1.7;
    margin-bottom:22px;
    word-break:keep-all;
}

/* 로그인 폼 */
.ag-field {
    display:block;
    width:100%;
    border:1px solid #ddd;
    border-radius:8px;
    padding:13px 14px;
    font-size:13px;
    color:#333;
    margin-bottom:10px;
    background:#fff;
    outline:none;
}
.ag-field:focus { border-color:#111; }
.ag-field::placeholder { color:#bbb; }
.ag-btn-primary {
    display:block;
    width:100%;
    background:#111;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:14px;
    font-size:14px;
    font-weight:700;
    margin-top:2px;
    cursor:pointer;
}
.ag-btn-primary:hover { background:#000; }
.ag-links-row {
    display:flex;
    gap:16px;
    justify-content:center;
    font-size:11px;
    margin:14px 0 16px;
}
.ag-links-row a {
    color:#999;
    text-decoration:underline;
    text-underline-offset:2px;
}
.ag-btn-naver {
    display:block;
    width:100%;
    background:#03c75a;
    color:#fff !important;
    border:none;
    border-radius:8px;
    padding:14px;
    font-size:14px;
    font-weight:700;
    text-align:center;
    cursor:pointer;
    margin-bottom:16px;
}
.ag-divider {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}
.ag-divider::before, .ag-divider::after {
    content:'';
    flex:1;
    height:1px;
    background:#e0e0dc;
}
.ag-divider span { font-size:11px; color:#bbb; }

/* 비회원 성인인증 */
.ag-section-title {
    font-size:15px;
    font-weight:700;
    color:#333;
    margin-bottom:5px;
}
.ag-section-desc {
    font-size:13px;
    color:#999;
    margin-bottom:14px;
    text-align:left;
}
.ag-cert-btns {
    display:flex;
    gap:10px;
    margin-bottom:8px;
}
.ag-btn-cert {
    flex:1;
    display:block;
    background:#111;
    color:#fff !important;
    border:none;
    border-radius:8px;
    padding:14px 0;
    font-size:13px;
    font-weight:700;
    text-align:center;
    cursor:pointer;
}
.ag-btn-cert:hover { background:#000; }
.ag-cert-hint {
    font-size:10.5px;
    color:#bbb;
    text-align:center;
    margin-bottom:18px;
}
/* 왼쪽 패널 : 19세 미만 나가기 텍스트 버튼 */
.ag-exit-text {
    display:inline-block;
    margin-top:18px;
    font-size:12px;
    color:#999 !important;
    text-decoration:underline;
    text-underline-offset:3px;
    cursor:pointer;
}
.ag-exit-text:hover { color:rgba(220,224,210,0.8) !important; }

/* ----- 하단 카피라이트 ----- */
#foot_info {
    position:relative;
    margin:24px auto 0;
    width:90%;
    max-width:860px;
    font-size:11px;
    text-align:center;
    line-height:20px;
    color:#666;
    letter-spacing:0.3px;
}

/* ===== 모바일 : 세로 스택 ===== */
@media (max-width: 820px){
    #sub_wrap { padding:0; background:#fff; min-height:auto; }
    .ag-shell {
        grid-template-columns:1fr;
        max-width:480px;
        border-radius:0;
        border:none;
        box-shadow:none;
        min-height:100vh;
    }
    .ag-left {
        min-height:auto;
        padding:36px 26px 30px;
    }
    .ag-main-title { font-size:24px; }
    .ag-19plus { font-size:44px; bottom:18px; right:22px; }
    .ag-right { padding:30px 26px 40px; }
    #foot_info { margin:0 auto; padding:20px 0 34px; color:#888; }
}
