/*
 * login.css — 로그인 공용 스타일 (design_a look)
 * 2026-09-02 login.blade.php 인라인 <style> 에서 추출.
 * tenant(ccbrand)/hq/branch 로그인 뷰가 공유. ccbrand 전용 클래스 작명 없음(공통 자산).
 * 의존: tokens.css(디자인 토큰) 를 같은 문서에서 먼저 로드해야 함.
 */

    /* ── Reset & Base ─────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: var(--f-sans);
      background: var(--c-bg);
      color: var(--c-ink);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      word-break: keep-all;
    }

    /* ── Auth Header ─────────────────────────────── */
    .auth-header {
      background: var(--c-paper);
      border-bottom: 1px solid var(--c-line-soft);
      padding: 14px 28px;
      display: flex;
      align-items: center;
      gap: 14px;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .auth-header-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .auth-header-logo-mark {
      width: 30px;
      height: 30px;
      border-radius: 6px;
      background: var(--c-brand);
      color: var(--c-brand-on);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: -0.02em;
      flex-shrink: 0;
    }

    .auth-header-logo-text {
      font-size: 14px;
      font-weight: 800;
      color: var(--c-ink);
      letter-spacing: -0.02em;
    }

    .auth-header-spacer { flex: 1; }

    .auth-header-action {
      font-size: 12px;
      color: var(--c-ink-soft);
    }

    .auth-header-action a {
      color: var(--c-brand);
      font-weight: 700;
      text-decoration: none;
    }

    /* ── Auth Main ──────────────────────────────── */
    .auth-main {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 32px 20px;
    }

    .auth-container {
      width: 100%;
      max-width: 440px;
    }

    /* ── Page Header ─────────────────────────────── */
    .auth-page-header {
      text-align: center;
      margin-bottom: 24px;
    }

    .auth-badge {
      font-family: var(--f-mono);
      font-size: 9.5px;
      font-weight: 700;
      color: var(--c-brand);
      letter-spacing: 0.12em;
      margin-bottom: 10px;
    }

    .auth-page-title {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--c-ink);
    }

    .auth-page-subtitle {
      font-size: 12.5px;
      color: var(--c-ink-soft);
      margin-top: 8px;
      line-height: 1.6;
    }

    /* ── Card ───────────────────────────────────── */
    .auth-card {
      background: var(--c-paper);
      border: 1px solid var(--c-line-soft);
      border-radius: 12px;
      padding: 26px 24px;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    /* ── Field ──────────────────────────────────── */
    .auth-field {
      margin-bottom: 14px;
    }

    .auth-label {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
      font-size: 12px;
      font-weight: 700;
      color: var(--c-ink);
    }

    .auth-input-wrap {
      position: relative;
      display: flex;
    }

    .auth-input-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--c-mute);
      pointer-events: none;
      z-index: 1;
      display: flex;
      align-items: center;
    }

    .auth-input {
      flex: 1;
      height: 42px;
      padding: 0 12px 0 38px;
      font-size: 13.5px;
      font-family: var(--f-sans);
      border: 1px solid var(--c-line);
      border-radius: 7px;
      outline: none;
      color: var(--c-ink);
      background: var(--c-paper);
      transition: border-color 0.15s;
      width: 100%;
    }

    .auth-input:focus {
      border-color: var(--c-brand);
    }

    .auth-input.has-suffix {
      border-radius: 7px 0 0 7px;
    }

    .auth-input.is-error {
      border-color: var(--c-danger);
    }

    .auth-input-suffix {
      padding: 0 12px;
      border: 1px solid var(--c-line);
      border-left: none;
      background: var(--c-paper);
      border-radius: 0 7px 7px 0;
      font-size: 11px;
      color: var(--c-ink-soft);
      cursor: pointer;
      font-weight: 600;
      font-family: var(--f-sans);
      white-space: nowrap;
    }

    .auth-input-suffix:hover {
      background: var(--c-paper-2);
    }

    /* ── Error Messages ──────────────────────────── */
    .auth-field-error {
      font-size: 11px;
      color: var(--c-danger);
      margin-top: 5px;
      font-weight: 600;
    }

    .auth-error-box {
      padding: 8px 12px;
      margin-bottom: 12px;
      background: var(--c-danger-soft);
      border: 1px solid var(--c-danger-line);
      border-radius: 6px;
      font-size: 11.5px;
      color: var(--c-danger-strong);
      font-weight: 600;
    }

    /* ── 성공/안내 상태 배너 (session('status')) — .auth-error-box 와 동일 구조,
       danger 토큰 대신 --c-ok 계열(성공/중립 톤) ─────────────────────── */
    .auth-status-box {
      padding: 8px 12px;
      margin-bottom: 12px;
      background: var(--c-ok-soft);
      border: 1px solid var(--c-ok);
      border-radius: 6px;
      font-size: 11.5px;
      color: var(--c-ok);
      font-weight: 600;
      word-break: keep-all;
    }

    /* ── Remember + Links row ────────────────────── */
    .auth-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }

    .auth-remember {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      user-select: none;
    }

    .auth-remember input[type="checkbox"] {
      accent-color: var(--c-brand);
    }

    .auth-remember-label {
      font-size: 12px;
      color: var(--c-ink-soft);
    }

    .auth-links {
      display: flex;
      gap: 12px;
      font-size: 12px;
    }

    .auth-links a {
      color: var(--c-ink-soft);
      text-decoration: none;
    }

    .auth-links a:hover {
      color: var(--c-brand);
    }

    .auth-links-sep {
      color: var(--c-line);
    }

    /* ── Primary Button ──────────────────────────── */
    .auth-btn {
      width: 100%;
      height: 46px;
      font-size: 14px;
      font-weight: 800;
      background: var(--c-brand);
      color: var(--c-brand-on);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      letter-spacing: -0.01em;
      box-shadow: var(--btn-shadow-raised);
      transition: background 0.15s, transform .12s ease, box-shadow .12s ease;
      font-family: var(--f-sans);
    }

    .auth-btn:hover {
      background: var(--c-brand-strong);
      transform: translateY(-1px);
      box-shadow: var(--btn-shadow-hover);
    }

    .auth-btn:active {
      transform: translateY(1px);
      box-shadow: var(--btn-shadow-pressed);
    }

    /* ── Divider ─────────────────────────────────── */
    .auth-divider {
      position: relative;
      margin: 20px 0;
      text-align: center;
    }

    .auth-divider-line {
      height: 1px;
      background: var(--c-line-soft);
    }

    .auth-divider-label {
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--c-paper);
      padding: 0 10px;
      font-size: 10.5px;
      color: var(--c-mute);
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    /* ── Social Buttons ──────────────────────────── */
    .auth-social-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .auth-social-btn {
      height: 40px;
      border-radius: 7px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      letter-spacing: -0.01em;
      font-family: var(--f-sans);
      border: none;
      transition: opacity 0.15s;
    }

    .auth-social-btn:hover { opacity: 0.85; }

    .auth-social-btn--google {
      background: var(--c-paper);
      color: var(--c-ink-soft);
      border: 1px solid var(--c-line-soft) !important;
    }

    .auth-social-btn--kakao {
      background: #FEE500;
      color: #000;
    }

    .auth-social-btn--naver {
      background: #03C75A;
      color: #FFF;
    }

    /* ── Footer Link ─────────────────────────────── */
    .auth-footer-link {
      margin-top: 16px;
      text-align: center;
      font-size: 12px;
      color: var(--c-ink-soft);
    }

    .auth-footer-link a {
      color: var(--c-brand);
      font-weight: 700;
      text-decoration: none;
    }

    /* ── Auth Footer ─────────────────────────────── */
    .auth-footer {
      border-top: 1px solid var(--c-line-soft);
      padding: 16px 28px;
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 11px;
      color: var(--c-mute);
      flex-wrap: wrap;
      justify-content: center;
    }

    .auth-footer a {
      color: var(--c-mute);
      text-decoration: none;
    }

    .auth-footer a:hover { color: var(--c-ink-soft); }

    /* ── 2FA Step ───────────────────────────────── */
    .auth-2fa-info {
      padding: 10px 14px;
      margin-bottom: 16px;
      background: var(--c-accent-soft);
      border-radius: 7px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .auth-2fa-info-icon { color: var(--c-brand); flex-shrink: 0; }

    .auth-2fa-info-text {
      flex: 1;
      font-size: 10.5px;
      color: var(--c-accent-strong);
      line-height: 1.5;
    }

    .auth-otp-grid {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      justify-content: space-between;
    }

    .auth-otp-input {
      width: calc((100% - 40px) / 6);
      height: 50px;
      text-align: center;
      font-size: 24px;
      font-weight: 700;
      font-family: var(--f-mono);
      border: 1.5px solid var(--c-line);
      border-radius: 8px;
      outline: none;
      color: var(--c-ink);
      background: var(--c-paper);
      transition: border-color 0.15s;
    }

    .auth-otp-input:focus { border-color: var(--c-brand); }

    .auth-otp-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .auth-otp-timer {
      font-size: 11px;
      color: var(--c-mute);
      font-family: var(--f-mono);
    }

    .auth-otp-resend {
      background: none;
      border: none;
      padding: 0;
      font-size: 11.5px;
      color: var(--c-brand);
      font-weight: 700;
      cursor: pointer;
      font-family: var(--f-sans);
    }

    .auth-2fa-back {
      width: 100%;
      margin-top: 10px;
      padding: 10px 0;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 12px;
      color: var(--c-ink-soft);
      font-weight: 600;
      font-family: var(--f-sans);
    }

    .auth-2fa-hint {
      margin-top: 14px;
      padding: 10px 12px;
      background: var(--c-paper-2);
      border-radius: 6px;
      font-size: 10.5px;
      color: var(--c-mute);
      line-height: 1.6;
    }

    .auth-2fa-hint a {
      color: var(--c-brand);
      font-weight: 700;
      text-decoration: none;
    }

    /* ── Email-Verify CTA (이메일 미인증 차단 시 에러박스 아래 표시) ── */
    .auth-unverified-cta {
      margin-top: 8px;
      padding: 10px 12px;
      background: var(--c-accent-soft);
      border: 1px solid var(--c-accent-line, var(--c-brand));
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .auth-unverified-cta-text {
      font-size: 11.5px;
      color: var(--c-accent-strong);
      font-weight: 600;
      line-height: 1.5;
    }

    .auth-unverified-cta-btn {
      flex-shrink: 0;
      padding: 7px 14px;
      background: var(--c-brand);
      color: var(--c-brand-on);
      border: none;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      font-family: var(--f-sans);
      letter-spacing: -0.01em;
      white-space: nowrap;
    }

    .auth-unverified-cta-btn:hover { background: var(--c-brand-strong); }

    /* ── Verify Panel: 이메일 인증 패널 (로그인 차단 후 인라인 표시) ── */
    .auth-verify-info {
      padding: 10px 14px;
      margin-bottom: 16px;
      background: var(--c-accent-soft);
      border-radius: 7px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .auth-verify-info-icon { color: var(--c-brand); flex-shrink: 0; padding-top: 1px; }

    .auth-verify-info-text {
      flex: 1;
      font-size: 11px;
      color: var(--c-accent-strong);
      line-height: 1.6;
    }

    .auth-verify-email-badge {
      font-weight: 800;
      font-size: 12px;
      color: var(--c-ink);
      word-break: break-all;
    }

    .auth-verify-label-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
    }

    .auth-verify-label { font-size: 12px; font-weight: 700; color: var(--c-ink); }

    .auth-verify-timer {
      font-size: 11px;
      color: var(--c-mute);
      font-family: var(--f-mono);
      margin-left: auto;
    }

    /* ── Verify success panel ──────────────────────── */
    .auth-verify-success {
      text-align: center;
      padding: 8px 0;
    }

    .auth-verify-success-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--c-ok);
      margin: 0 auto 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .auth-verify-success-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--c-ink);
      margin-bottom: 6px;
    }

    .auth-verify-success-desc {
      font-size: 12px;
      color: var(--c-ink-soft);
      line-height: 1.6;
      margin-bottom: 18px;
    }

    /* ── Mobile ──────────────────────────────────── */
    @media (max-width: 480px) {
      .auth-header { padding: 12px 16px; }
      .auth-card { padding: 20px 16px; }
      .auth-footer { padding: 14px 16px; gap: 12px; }
    }
