.auth-dialog{width:440px;max-width:calc(100% - 32px);margin:auto;padding:42px 32px 28px;border:1px solid #e4ebe7;border-radius:24px;background:#fff;color:#153e30;box-shadow:0 24px 90px #12362b24;text-align:center}
.auth-dialog::backdrop{background:#13382b45;backdrop-filter:blur(7px)}
.auth-dialog .close-dialog{top:16px;right:16px;display:grid;place-items:center;width:32px;height:32px;color:#7b8c83}
.auth-dialog .close-dialog svg{width:22px;height:22px}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:9px;margin:5px auto 27px}
.auth-brand img:first-child{width:30px;height:30px}.auth-brand img:last-child{width:116px;height:auto}
.auth-dialog h2{font-size:27px;font-weight:650;line-height:1.4;letter-spacing:-1px;margin:0 0 9px}
.auth-dialog #start-description{font-size:15px;line-height:1.7;letter-spacing:-.25px;color:#708278;margin:0 0 28px;word-break:keep-all}
.auth-providers{display:grid;gap:12px}
.auth-provider{width:100%;min-height:54px;padding:13px 20px;display:flex;justify-content:center;align-items:center;gap:12px;border:1px solid #dce5de;border-radius:var(--action-button-radius,17px);background:#fff;color:#233a2f;font-size:16px;font-weight:550;line-height:1.5;transition:background .15s,border-color .15s}
.auth-provider svg{width:22px;height:22px;flex-shrink:0}
.auth-provider:hover{background:#f5f9f6;border-color:#afc8ba}
.auth-provider.kakao{background:#fee500;border-color:#fee500;color:#241c13}.auth-provider.kakao:hover{background:#f4dd00;border-color:#f4dd00}
.auth-dialog .auth-feedback{font-size:14px;line-height:1.75;text-align:left;color:#315d47;background:#f1f7f3;padding:13px 16px;border-radius:12px;margin:18px 0 0;word-break:keep-all}
.auth-preview{border-top:1px solid #edf1ee;margin-top:26px;padding-top:18px;display:flex;flex-direction:column;gap:7px}
.auth-preview>span{font-size:12px;color:#8c9992}.auth-preview>a{font-size:14px;font-weight:500;color:#005844;text-decoration:underline;text-underline-offset:4px;padding:3px}
@media(max-width:480px){.auth-dialog{padding:38px 24px 24px}.auth-dialog h2{font-size:25px}.auth-dialog #start-description{font-size:14px}.auth-brand{margin-bottom:23px}}
@media(prefers-reduced-motion:reduce){.auth-provider{transition:none}}
.auth-back{position:absolute;left:16px;top:16px;display:grid;place-items:center;width:32px;height:32px;border:0;background:transparent;color:#6e8176;padding:0}
.auth-back svg{width:22px;height:22px}
.auth-dialog h2:focus{outline:none}
.auth-demo-note{font-size:12px;line-height:1.75;color:#89968e;word-break:keep-all;margin:22px 0 0}
.auth-method{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:#6d7e74;margin:-4px 0 20px}
.auth-method svg{width:19px;height:19px}.auth-method.kakao svg{background:#fee500;border-radius:50%;padding:3px;width:25px;height:25px}
.auth-account{display:flex;align-items:center;gap:13px;width:100%;border:1px solid #dce5de;border-radius:17px;background:#fff;padding:17px 15px;text-align:left;color:#203e30}
.auth-account:hover{background:#f5f9f6;border-color:#aec9bb}
.auth-account img{width:43px;height:43px;border-radius:50%;object-fit:cover;object-position:center 20%}
.auth-account>span:nth-child(2){display:grid;gap:3px;min-width:0}
.auth-account strong{font-size:16px;font-weight:600}.auth-account small{font-size:13px;color:#7b8c82}
.auth-account .auth-account-tag{margin-left:auto;font-size:11px;color:#6e8e7d;white-space:nowrap}
.auth-text-button{display:block;margin:16px auto 0;padding:5px 0;border:0;background:transparent;color:#5f7a6b;font-size:14px;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.auth-form{text-align:left}
.auth-form>label{display:block;font-size:14px;font-weight:500;margin-bottom:9px;color:#345845}
.auth-form>input{width:100%;min-height:52px;border:1px solid #cfddd4;border-radius:12px;background:#fff;color:#244a36;padding:13px 15px;font-size:16px;line-height:1.5;box-sizing:border-box}
.auth-form>input::placeholder{color:#a0ada5}.auth-form>input:focus{border-color:#005844;outline:2px solid #00584422;outline-offset:2px}
.auth-form .auth-sample-fill{margin:7px 0 0 auto;font-size:13px}
.auth-primary{display:flex;width:100%;margin-top:24px;padding:14px 18px;font-size:16px;font-weight:600;line-height:1.5;min-height:52px;text-decoration:none}
.auth-code{text-align:center;font-size:25px!important;font-variant-numeric:tabular-nums;letter-spacing:.3em}
.auth-code-help{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#7e8f84;margin:10px 0 0}
.auth-code-help strong{font-weight:600;color:#005844;letter-spacing:.06em}.auth-code-help .auth-text-button{font-size:13px;margin:0}
.auth-email-value{font-weight:500;color:#315d46;overflow-wrap:anywhere}
.auth-error{font-size:13px;line-height:1.6;color:#a43f3f;margin:11px 0 0}
.auth-inline-note{font-size:13px;line-height:1.6;color:#517563;text-align:center;margin:8px 0 0}
.auth-account-summary{display:grid;gap:5px;background:#f5f8f6;border-radius:12px;padding:13px 16px;margin:0 0 23px;font-size:14px}
.auth-account-summary>span{font-size:12px;color:#829389}.auth-account-summary strong{font-size:14px;font-weight:500;color:#365943;overflow-wrap:anywhere}
.auth-consents{margin-top:23px;display:grid;gap:14px}
.auth-consents>label{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:14px;line-height:1.6;color:#55705f}
.auth-consents>label:first-child{padding-bottom:14px;border-bottom:1px solid #e7ede9;color:#294d38}
.auth-consents input{width:18px;height:18px;flex-shrink:0;margin:3px 0 0;accent-color:#005844}
.auth-consents small{font-size:12px;color:#899a8e;white-space:nowrap;margin-left:5px}
.auth-success-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 22px;border-radius:50%;color:#005844;background:#ecf5ef}.auth-success-icon svg{width:30px;height:30px}
.auth-complete-account{display:flex;justify-content:center;align-items:center;gap:10px;font-size:14px;color:#5c7665;overflow-wrap:anywhere}
.auth-complete-account svg{width:20px;height:20px;flex-shrink:0}.auth-complete-account span{min-width:0}
.auth-field{margin-bottom:17px}.auth-field>label{display:block;margin-bottom:7px;font-size:14px;font-weight:500;color:#345845}
.auth-field>input,.auth-password-wrap>input{width:100%;min-height:50px;border:1px solid #cfddd4;border-radius:12px;background:#fff;color:#244a36;padding:12px 14px;font-size:16px;line-height:1.5;box-sizing:border-box}
.auth-field input::placeholder{color:#a0ada5}.auth-field input:focus{border-color:#005844;outline:2px solid #00584422;outline-offset:2px}
.auth-password-wrap{position:relative}.auth-password-wrap>input{padding-right:64px}
.auth-password-toggle{position:absolute;right:12px;top:0;bottom:0;border:0;background:transparent;color:#6b8374;padding:0 4px;font-size:13px}
.auth-field-hint{margin:6px 0 0;font-size:12px;line-height:1.6;color:#89968e}
.auth-registration .auth-primary{margin-top:20px}.auth-registration .auth-sample-fill{margin-top:-3px}
.auth-verification-progress{display:flex;justify-content:center;gap:18px;margin:-7px 0 25px;font-size:12px;color:#a2ada6}
.auth-verification-progress .current{color:#005844;font-weight:600}.auth-verification-progress .complete{color:#5c856e}
.auth-code-actions{display:flex;justify-content:space-between;gap:20px}.auth-code-actions .auth-text-button{margin:16px 0 0}
.auth-identity-summary{margin:0;padding:15px 17px;background:#f5f8f6;border-radius:12px;display:grid;gap:16px}
.auth-identity-summary>div{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px;align-items:start}
.auth-identity-summary dt{font-size:13px;color:#7d9082}.auth-identity-summary dd{margin:0;font-size:14px;color:#345742;overflow-wrap:anywhere}
.auth-identity-summary dd small{display:block;color:#4f8765;font-size:11px;line-height:1.6;margin-top:3px}

/* Two-step signup with verification directly below each contact field. */
.auth-dialog[data-auth-step="details"] .auth-brand,.auth-dialog[data-auth-step="credentials"] .auth-brand{margin-bottom:20px}
.auth-dialog[data-auth-step="details"] .auth-method,.auth-dialog[data-auth-step="credentials"] .auth-method{margin-bottom:12px}
.auth-dialog[data-auth-step="details"] #start-description,.auth-dialog[data-auth-step="credentials"] #start-description{margin-bottom:24px}
.auth-input-row{display:flex;align-items:stretch;gap:8px}
.auth-input-row>input{flex:1;width:0;min-width:0;min-height:48px;border:1px solid #cfddd4;border-radius:12px;background:#fff;color:#244a36;padding:11px 12px;font-size:16px;line-height:1.5;box-sizing:border-box}
.auth-field-action{flex-shrink:0;padding:10px 13px;border:1px solid #d4e2d9;border-radius:var(--action-button-radius,17px);background:#f3f8f5;color:#005844;font-size:13px;font-weight:550;line-height:1.5;white-space:nowrap}
.auth-field-action:hover{background:#e9f3ed;border-color:#aecabb}.auth-field-action:disabled{background:#f5f8f6;border-color:transparent;color:#58866e;cursor:default}
.auth-inline-verification{margin-top:11px}.auth-inline-verification>label{display:block;font-size:12px;color:#75897c;margin-bottom:6px}
.auth-inline-verification .auth-input-row>input{min-height:44px;letter-spacing:.04em}
.auth-inline-verification .auth-code-help{font-size:12px;margin-top:5px}.auth-inline-verification .auth-text-button{font-size:12px}
.auth-field-status{font-size:12px;line-height:1.6;color:#347a58;margin:7px 0 0}.auth-field-status.is-error{color:#a43f3f}
.auth-step-count{text-align:center;margin:10px 0 0;font-size:13px;font-variant-numeric:tabular-nums;color:#91a198;letter-spacing:2px}.auth-step-count strong{color:#005844;font-weight:600}
.auth-dialog[data-auth-step="details"] .auth-demo-note,.auth-dialog[data-auth-step="credentials"] .auth-demo-note{margin-top:15px}
.auth-inline-verification[hidden],.auth-field-status[hidden],.auth-error[hidden]{display:none}
@media(max-width:480px){.auth-input-row{gap:7px}.auth-field-action{padding:10px 11px;font-size:12px}.auth-input-row>input{padding:11px 10px}.auth-consents small{font-size:11px;margin-left:3px}}

.auth-dialog .auth-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ---- 서비스 연결 덧붙임(마일로 T-19). 위는 도하님 11-22 시안 auth-dialog.css 그대로, 순서를 바꾸지 않는다 ---- */
/* 다른 공개 화면(React)에 붙여도 숨김·경계 상자가 같게 */
.auth-dialog [hidden]{display:none!important}
.auth-dialog,.auth-dialog *{box-sizing:border-box}
/* 오류 안내(취소·만료 등은 초록, 실패는 붉은 톤) */
.auth-dialog .auth-feedback.is-error{color:#a43f3f;background:#fbf1f1}
/* 동의 글의 약관·처리방침 링크 */
.auth-consents a{color:#005844;text-decoration:underline;text-underline-offset:3px}
/* 서버 응답을 기다리는 버튼 */
.auth-dialog [aria-busy="true"]{opacity:.6;cursor:progress}
/* 아이디 확인 결과가 거절일 때(시안 .auth-field-status.is-error 와 같은 색) */
.auth-dialog .auth-field-status.is-error{color:#a43f3f}
/* 로그인 화면 아래 두 글자 버튼 */
.auth-dialog .auth-code-actions{flex-wrap:wrap;gap:4px 20px}
/* 로그인 상태 머리 [스튜디오] 링크(마일로 T-22): 시안 chat-portfolio.css 의 .header-login 버튼과 같은 모양 */
a.header-login{display:inline-flex;align-items:center;text-decoration:none}
/* 2/2 동의 블록(마일로 T-23, 설계 4절): 줄 + [보기], 마케팅 채널, 안내 */
.auth-consents .auth-consent-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.auth-consents .auth-consent-row>label{display:flex;align-items:flex-start;gap:11px;cursor:pointer;font-size:14px;line-height:1.6;color:#55705f;text-align:left}
.auth-consents .auth-consent-view{flex-shrink:0;border:0;background:transparent;padding:2px 0;color:#5f7a6b;font-size:13px;line-height:1.6;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.auth-consents .auth-consent-channels{display:flex;flex-wrap:wrap;gap:6px 18px;margin:-6px 0 0 29px}
.auth-consents .auth-consent-channels>label{display:flex;align-items:center;gap:7px;font-size:13px;color:#55705f;cursor:pointer}
.auth-consents .auth-consent-channels input:disabled+*,.auth-consents .auth-consent-channels label:has(input:disabled){color:#a3b2a8;cursor:not-allowed}
.auth-consents .auth-consent-hint{margin:-6px 0 0;text-align:left}
/* [보기] 대화상자(가입 팝업 위) */
.auth-doc-dialog{text-align:left;max-height:min(80dvh,640px);overflow-y:auto}
.auth-doc-dialog h3{margin:0 28px 12px 0;font-size:18px;line-height:1.45;color:#153e30}
.auth-doc-dialog .auth-doc-lead{margin:0 0 8px;font-weight:600;color:#294d38;font-size:14px}
.auth-doc-dialog ul{margin:0;padding:0 0 0 18px;display:grid;gap:8px;font-size:14px;line-height:1.65;color:#3d5a49}
.auth-doc-dialog .auth-doc-link{margin:12px 0 0;font-size:14px}
.auth-doc-dialog .auth-doc-link a{color:#005844;text-decoration:underline;text-underline-offset:3px}
.auth-doc-dialog .auth-doc-note{margin:16px 0 0;font-size:12px;line-height:1.6;color:#7b8c83}
.auth-doc-dialog .auth-primary{margin-top:18px}
