/* DXCMS — core/auth/register.php 에서 분리 */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Pretendard',-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
.sg{font-family:'Space Grotesk',sans-serif}
input:focus{outline:none;border-color:#4f46e5!important;box-shadow:0 0 0 3px rgba(79,70,229,.12)}

/* 중복체크 상태 */
.dx-field-wrap{position:relative}
.dx-check-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);
              padding:4px 10px;border-radius:7px;border:none;font-size:11px;font-weight:700;
              cursor:pointer;transition:.15s;background:#e0e7ff;color:#4f46e5;white-space:nowrap}
.dx-check-btn:hover{background:#c7d2fe}
.dx-check-btn:disabled{opacity:.5;cursor:not-allowed}
.dx-status{font-size:11px;font-weight:600;margin-top:5px;display:flex;align-items:center;gap:4px;min-height:18px}
.dx-status.ok  {color:#059669}
.dx-status.err {color:#dc2626}
.dx-status.ing {color:#94a3b8}

/* 소셜 버튼 */
.social-btn{display:flex;align-items:center;justify-content:center;gap:8px;
            width:100%;padding:11px;border-radius:12px;font-size:.85rem;font-weight:700;
            cursor:pointer;transition:.15s;border:1px solid transparent;text-decoration:none}
.social-btn:hover{opacity:.88;transform:translateY(-1px)}
.social-divider{display:flex;align-items:center;gap:12px;margin:4px 0}
.social-divider::before,.social-divider::after{content:'';flex:1;height:1px;background:#e2e8f0}
.social-divider span{font-size:11px;color:#94a3b8;font-weight:600;white-space:nowrap}

/* 약관 동의 */
.dx-terms-wrap{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;padding:16px 18px}
.dx-terms-all{display:flex;align-items:center;gap:10px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #e2e8f0;cursor:pointer}
.dx-terms-all label{font-size:.85rem;font-weight:700;color:#1e293b;cursor:pointer;user-select:none}
.dx-terms-item{display:flex;align-items:center;gap:10px;margin-bottom:8px;cursor:pointer}
.dx-terms-item:last-child{margin-bottom:0}
.dx-terms-item label{font-size:.8rem;font-weight:600;color:#475569;cursor:pointer;user-select:none;flex:1}
.dx-terms-item span.req{font-size:10px;font-weight:700;color:#ef4444;background:#fef2f2;border:1px solid #fecaca;padding:1px 5px;border-radius:4px;white-space:nowrap}
.dx-terms-item span.opt{font-size:10px;font-weight:700;color:#6366f1;background:#eef2ff;border:1px solid #c7d2fe;padding:1px 5px;border-radius:4px;white-space:nowrap}
.dx-terms-item .view-btn{font-size:10px;color:#94a3b8;text-decoration:underline;cursor:pointer;white-space:nowrap;border:none;background:none;padding:0;font-family:inherit}
.dx-terms-item .view-btn:hover{color:#6366f1}
.dx-chk{width:17px;height:17px;accent-color:#4f46e5;cursor:pointer;flex-shrink:0}

/* 약관 모달 */
.dx-modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9000;align-items:center;justify-content:center;padding:16px}
.dx-modal-bg.show{display:flex}
.dx-modal{background:#fff;border-radius:20px;width:100%;max-width:520px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 24px 64px rgba(0,0,0,.18)}
.dx-modal-hd{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid #f1f5f9}
.dx-modal-hd h3{font-size:.95rem;font-weight:700;color:#1e293b}
.dx-modal-close{width:28px;height:28px;border-radius:50%;border:none;background:#f1f5f9;color:#64748b;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.15s}
.dx-modal-close:hover{background:#e2e8f0;color:#1e293b}
.dx-modal-body{padding:18px 22px;overflow-y:auto;font-size:.78rem;line-height:1.8;color:#475569}
.dx-modal-body h4{font-size:.82rem;font-weight:700;color:#1e293b;margin:14px 0 4px}
.dx-modal-body h4:first-child{margin-top:0}
.dx-modal-body p{margin-bottom:8px}
.dx-modal-body ul{padding-left:16px;margin-bottom:8px}
.dx-modal-body ul li{margin-bottom:3px}
.dx-modal-body table{width:100%;border-collapse:collapse;margin-bottom:10px;font-size:.75rem}
.dx-modal-body table th,.dx-modal-body table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left}
.dx-modal-body table th{background:#f8fafc;font-weight:700;color:#1e293b}
.dx-modal-ft{padding:14px 22px;border-top:1px solid #f1f5f9;display:flex;justify-content:flex-end}
.dx-modal-ft button{padding:8px 20px;border-radius:10px;border:none;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-size:.82rem;font-weight:700;cursor:pointer}
