@charset "utf-8";
/*
 * XaaS 공통 로그인 화면 (A 오로라 글래스) — 4개 SaaS 공통 파일, 저장소마다 같은 내용으로 유지
 * - 서비스 색은 xaas-theme.css(서비스별)에서 지정. 이 파일에는 서비스 이름·색을 넣지 않음
 * - 폼 id/name·스크립트와 무관한 화면 스타일만 포함
 * - 불러오는 순서: xaas-theme.css → xaas-login.css
 * - 화면 구성(JSP 마크업): main.xl-page > section.xl-brand(.xl-ring.r1/.r2, .xl-inner) + section.xl-panel(.xl-form)
 *   데스크톱: 어두운 오로라 배경 위 가운데 유리 카드(왼쪽 브랜드 · 오른쪽 흰 로그인 폼)
 *   모바일: 위쪽 오로라 브랜드 + 아래쪽 흰 로그인 시트, 스크롤 없이 한 화면
 */
:root{
  --xl-ink:#0f172a;
  --xl-sub:#64748b;
  --xl-line:#e2e8f0;
  --xl-night:#070b18;
}
html,body{height:100%}
body.xl-body{margin:0;background:var(--xl-night);color:var(--xl-ink);font-family:"Pretendard","Noto Sans KR","Malgun Gothic",-apple-system,sans-serif;-webkit-font-smoothing:antialiased}

/* ---------- 배경: 오로라 + 격자 ---------- */
.xl-page{position:relative;isolation:isolate;overflow:hidden;min-height:100vh;min-height:100svh;box-sizing:border-box;padding:40px 24px;
  display:grid;grid-template-columns:minmax(0,500px) minmax(0,440px);justify-content:center;align-content:center;background:var(--xl-night)}
.xl-page::before,.xl-ring{content:"";position:absolute;z-index:-1;border-radius:50%;filter:blur(90px);opacity:.7;pointer-events:none;animation:xl-float 16s ease-in-out infinite}
.xl-page::before{width:560px;height:560px;left:-140px;top:-160px;background:var(--xl-a1)}
.xl-ring.r1{width:500px;height:500px;right:-140px;bottom:-180px;background:var(--xl-a2);animation-delay:-6s}
.xl-ring.r2{width:320px;height:320px;left:52%;top:46%;background:var(--xl-a3);opacity:.5;animation-delay:-10s}
.xl-page::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:44px 44px;
  -webkit-mask-image:radial-gradient(circle at center,#000 30%,transparent 75%);mask-image:radial-gradient(circle at center,#000 30%,transparent 75%)}
@keyframes xl-float{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(60px,-40px) scale(1.1)}66%{transform:translate(-40px,50px) scale(.95)}}

/* ---------- 왼쪽: 유리 카드 브랜드 ---------- */
.xl-brand{padding:48px 44px;display:flex;flex-direction:column;justify-content:center;color:#fff;
  border-radius:28px 0 0 28px;border:1px solid rgba(255,255,255,.16);border-right:0;
  background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.04));box-shadow:0 40px 120px -30px rgba(0,0,0,.7)}
.xl-inner{position:relative;z-index:1;max-width:440px}
.xl-logo{display:flex;align-items:center;gap:12px}
.xl-mark{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;position:relative;flex:none;background:#fff;
  box-shadow:0 12px 30px -8px var(--xl-a1),0 0 0 4px rgba(255,255,255,.14)}
.xl-mark::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(160deg,rgba(255,255,255,.6),transparent 40%);pointer-events:none}
.xl-mark img{width:74%;height:74%;display:block}
.xl-wm{line-height:1.15}
.xl-wm small{display:block;font-size:11px;letter-spacing:.22em;font-weight:700;opacity:.8}
.xl-wm strong{display:block;font-size:20px;font-weight:800}
.xl-title{font-size:40px;font-weight:800;margin:34px 0 12px;letter-spacing:-.02em;line-height:1.2;
  background:linear-gradient(90deg,#fff,var(--xl-a3));-webkit-background-clip:text;background-clip:text;color:transparent}
.xl-desc{margin:0;color:rgba(255,255,255,.74);line-height:1.7;font-size:14px}
.xl-feat{margin:26px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.xl-feat li{font-size:12px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14)}
.xl-feat li::before{content:"●";color:var(--xl-a3);margin-right:6px;font-size:9px;vertical-align:1px}

/* 업체 제목(있는 서비스만): 큰 제목 자리에 서비스명 대신 업체 로고 또는 업체명 */
.xl-title.xl-title-client{line-height:1.25;background:none;color:#fff}
.xl-title-client img{height:48px;width:auto;display:block;max-width:100%}
.xl-title-client.is-text{font-size:34px;background:linear-gradient(90deg,#fff,var(--xl-a3));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- 오른쪽: 흰 로그인 폼 ---------- */
.xl-panel{position:relative;z-index:1;display:grid;place-items:center;padding:48px 44px;background:rgba(255,255,255,.96);
  border-radius:0 28px 28px 0;box-shadow:0 40px 120px -30px rgba(0,0,0,.7)}
.xl-form{width:min(380px,100%)}
.xl-form h2{font-size:26px;font-weight:800;margin:0}
.xl-guide{color:var(--xl-sub);font-size:13px;margin:6px 0 24px}
.xl-form .log-error{margin-bottom:14px}
.xl-fld{margin-bottom:16px}
.xl-fld label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;color:#334155}
.xl-fld input{width:100%;box-sizing:border-box;padding:14px 16px;border-radius:12px;border:1.5px solid var(--xl-line);background:#f8fafc;font:inherit;font-size:14px;color:var(--xl-ink);transition:.2s}
.xl-fld input::placeholder{color:#94a3b8}
.xl-fld input:focus{outline:none;border-color:var(--xl-a1);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--xl-a1) 18%,transparent)}
.xl-btn{width:100%;margin-top:8px;padding:15px;border:0;border-radius:12px;font:inherit;font-weight:800;font-size:15px;color:#fff;cursor:pointer;position:relative;overflow:hidden;
  background:linear-gradient(90deg,var(--xl-a1),var(--xl-a2),var(--xl-a1));background-size:200% 100%;animation:xl-shift 5s linear infinite;box-shadow:0 12px 28px -10px var(--xl-a1)}
.xl-btn::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:xl-shine 3.2s ease-in-out infinite}
.xl-btn:focus-visible{outline:3px solid color-mix(in srgb,var(--xl-a1) 40%,transparent);outline-offset:3px}
@keyframes xl-shift{to{background-position:200% 0}}
@keyframes xl-shine{0%{left:-60%}60%,100%{left:130%}}

/* 로그인구분(있는 서비스만): 실제 값은 select가 가지고, 버튼은 화면 표시용 */
.xl-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:#f1f5f9;border:1.5px solid var(--xl-line)}
.xl-seg button{border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:var(--xl-sub);padding:10px 8px;border-radius:9px;cursor:pointer;transition:.2s}
.xl-seg button[aria-pressed="true"]{color:#fff;background:linear-gradient(90deg,var(--xl-a1),var(--xl-a2));box-shadow:0 6px 16px -8px var(--xl-a1)}
.xl-seg button:focus-visible{outline:2px solid var(--xl-a1);outline-offset:2px}
.xl-sr{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 계정 링크(회원가입 · 아이디/비밀번호 찾기 등, 있는 서비스만) */
.xl-links{display:flex;justify-content:center;gap:18px;margin-top:16px;font-size:13px}
.xl-links a{color:var(--xl-sub);text-decoration:none}
.xl-links a:hover{color:var(--xl-a1);text-decoration:underline}

/* 하단: 에이콘컴퍼니 원본 로고(홈페이지 링크) + copyright */
.xl-corp{margin-top:22px;padding-top:16px;border-top:1px solid #eef2f7;display:flex;align-items:center;justify-content:center;gap:14px}
.xl-corp a{display:block;line-height:0;border-radius:6px;transition:opacity .2s,transform .2s}
.xl-corp a:hover{opacity:.8;transform:translateY(-1px)}
.xl-corp a:focus-visible{outline:2px solid #2169A9;outline-offset:4px}
.xl-corp img{height:24px;width:auto;display:block}
.xl-corp .sep{width:1px;height:24px;background:var(--xl-line)}
.xl-corp p{margin:0;text-align:left;font-size:11px;line-height:1.45;color:#94a3b8}

/* 노트북 높이가 낮을 때 카드 여백 줄임 */
@media (min-width:821px) and (max-height:700px){
  .xl-brand,.xl-panel{padding-top:32px;padding-bottom:32px}
  .xl-title{margin-top:24px}
  .xl-feat{margin-top:18px}
}

/* ---------- 모바일: 위쪽 오로라 브랜드 + 아래쪽 흰 로그인 시트, 한 화면 고정 ---------- */
@media (max-width:820px){
  .xl-page{display:flex;flex-direction:column;padding:0;background:var(--xl-night)}
  .xl-page::before{width:340px;height:340px;left:-120px;top:-120px}
  .xl-ring.r1{width:300px;height:300px;right:-120px;top:80px;bottom:auto}
  .xl-ring.r2{width:220px;height:220px;left:30%;top:20px}
  .xl-brand{flex:1 0 auto;min-height:30svh;padding:clamp(20px,3svh,40px) 16px clamp(44px,6svh,64px);align-items:center;text-align:center;
    border:0;border-radius:0;background:none;box-shadow:none}
  .xl-inner{display:flex;flex-direction:column;align-items:center}
  .xl-logo{flex-direction:column;gap:clamp(12px,2svh,22px)}
  .xl-mark{width:clamp(52px,8svh,96px);height:clamp(52px,8svh,96px);border-radius:clamp(15px,2.2svh,26px)}
  .xl-wm small{font-size:clamp(10px,1.3svh,13px);letter-spacing:.16em;margin-bottom:4px}
  .xl-wm strong{font-size:clamp(24px,3.8svh,38px);background:linear-gradient(90deg,#fff,var(--xl-a3));-webkit-background-clip:text;background-clip:text;color:transparent}
  .xl-title,.xl-desc .d2{display:none}
  .xl-desc{font-size:clamp(13px,1.7svh,16px);line-height:1.6;margin-top:clamp(12px,1.8svh,24px)}
  .xl-feat{justify-content:center;gap:clamp(6px,.9svh,10px);margin-top:clamp(14px,2.2svh,30px)}
  .xl-feat li{white-space:nowrap;font-size:clamp(12px,1.55svh,14px);padding:clamp(6px,.9svh,9px) clamp(11px,1.5svh,15px)}
  .xl-feat li::before{display:none}
  /* 업체 제목: 모바일에서는 서비스명 자리를 대신하므로 크게 */
  .xl-title.xl-title-client{display:block;margin:clamp(6px,1.2svh,14px) 0 0}
  .xl-title-client img{height:clamp(28px,4svh,44px);margin:0 auto}
  .xl-title-client.is-text{font-size:clamp(24px,3.6svh,36px)}
  .xl-panel{flex:0 0 auto;display:block;margin-top:-26px;border-radius:26px 26px 0 0;background:#fff;
    padding:28px max(16px,calc((100% - 480px)/2)) calc(24px + env(safe-area-inset-bottom));box-shadow:0 -18px 40px -20px rgba(0,0,0,.55)}
  .xl-form{width:100%}
  .xl-form h2{font-size:22px}
  .xl-guide{margin:6px 0 20px}
  .xl-fld input{font-size:16px}               /* iOS 입력 시 확대 방지 */
  .xl-links{margin-top:12px;font-size:12.5px}
  .xl-corp{margin-top:14px;padding-top:12px;gap:12px}
  .xl-corp img,.xl-corp .sep{height:20px}
  .xl-corp p{font-size:10.5px}
}
@media (max-width:820px) and (min-height:840px){ .xl-desc .d2{display:inline} }
/* 화면 높이에 맞춰 스크롤 없이: 하단 시트는 항상 전부, 상단은 남는 높이만 사용 */
@media (max-width:820px) and (min-height:521px){
  html,body.xl-body{overflow:hidden}
  .xl-page{height:100vh;height:100svh;min-height:0;overflow:hidden}
  .xl-brand{flex:1 1 0;min-height:0;container:xl-hero/size}
  @container xl-hero (max-height:340px){ .xl-desc .d2{display:none} }
  @container xl-hero (max-height:285px){ .xl-feat{display:none} }
  @container xl-hero (max-height:180px){ .xl-desc{display:none} }
  @container xl-hero (max-height:120px){ .xl-title.xl-title-client{display:none} }
  @container xl-hero (max-height:140px){
    .xl-logo{flex-direction:row;gap:12px;text-align:left}
    .xl-mark{width:44px;height:44px;border-radius:13px}
    .xl-wm strong{font-size:22px}
  }
  @container xl-hero (max-height:70px){ .xl-mark,.xl-wm small{display:none} }
}
@media (prefers-reduced-motion:reduce){
  .xl-page::before,.xl-ring,.xl-btn,.xl-btn::after{animation:none}
}
