/** CS Center theme — shared with login + dashboard (intranet-aligned). */

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
.logo-dot {
  animation: pulse-dot 2s infinite ease-in-out;
  transform-origin: center;
  transform-box: fill-box;
}

html {
    scrollbar-gutter: stable;
}

/* ---------- 전역: 가로 스크롤 방지 / 반응형 ---------- */
body.cs-center-app {
    overflow-x: hidden;
    max-width: 100vw;
}
.cs-center-app main {
    overflow-x: hidden;
    max-width: 100%;
}
/* fluid만 풀폭. .container는 Bootstrap 브레이크포인트 유지 + 초대형 화면에서 1200px 상한(헤더·본문 동일 선) */
.cs-center-app .container-fluid {
    max-width: 100%;
}
@media (min-width: 1200px) {
    .cs-center-app .container {
        max-width: 1200px;
    }
}
.cs-center-app .form-control,
.cs-center-app textarea,
.cs-center-app .form-select {
    max-width: 100%;
    box-sizing: border-box;
}

/* 첨부 드롭존: 긴 문구 줄바꿈 (모바일 가로 스크롤 방지) */
.cs-file-drop-zone .attachment-file-label-text,
.cs-file-drop-zone .cs-file-drop-text {
    white-space: normal !important;
    word-break: keep-all;
    text-align: center;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
}
.cs-file-drop-zone {
    min-width: 0;
    max-width: 100%;
}

/* 헤더 브랜드: 좁은 화면에서 최소 너비 제거 */
@media (max-width: 767.98px) {
    a.cs-center-brand-link {
        min-width: 0;
    }
}

/* 로그인 폼 열: 데스크탑에서 과도한 너비 제한 */
.cs-login-form-inner {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
body.cs-center-app.cs-page-bg {
    background-color: #f8fafc !important;
    font-family: var(--font, 'Pretendard', system-ui, sans-serif) !important;
}
.view-hidden { display: none !important; }
.cs-view-fade {
    transition: opacity 0.2s ease;
    opacity: 1;
}
.cs-view-fade--hidden {
    opacity: 0;
    pointer-events: none;
}
:root {
    --cs-navy-a: #1a3c7a;
    --cs-navy-b: #2c52a3;
    --cs-royal: #3d5a9e;
    --cs-royal-mid: #4d6bb0;
    --cs-royal-light: #5b7fd4;
    --cs-focus-glow: rgba(91, 127, 212, 0.42);
}
.cs-center-app {
    font-family: var(--font, 'Pretendard', system-ui, sans-serif);
}
.cs-login-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(148deg, var(--cs-navy-a) 0%, var(--cs-navy-b) 52%, #234684 100%);
}
.cs-login-banner__grain {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    pointer-events: none;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 24px 24px;
}
.cs-login-banner__diagonal {
    position: absolute;
    inset: -40%;
    opacity: 0.055;
    pointer-events: none;
    transform: rotate(-12deg);
    background: repeating-linear-gradient(
        -32deg,
        transparent,
        transparent 14px,
        rgba(255, 255, 255, 0.22) 14px,
        rgba(255, 255, 255, 0.22) 15px
    );
}
.cs-premium-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cs-premium-input:focus {
    outline: none;
    border-color: var(--cs-royal-light) !important;
    box-shadow: 0 0 0 3px var(--cs-focus-glow), 0 4px 18px rgba(26, 60, 122, 0.12);
}
.cs-premium-btn-primary {
    background: linear-gradient(180deg, var(--cs-royal-mid) 0%, var(--cs-royal) 100%);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 22px rgba(26, 44, 90, 0.45);
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.cs-premium-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 32px rgba(26, 44, 90, 0.55);
}
.cs-premium-btn-primary:active {
    transform: scale(0.99);
}
.cs-premium-btn-sm {
    background: linear-gradient(180deg, var(--cs-royal-mid) 0%, var(--cs-royal) 100%);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(26, 44, 90, 0.38);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.cs-premium-btn-sm:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 22px rgba(26, 44, 90, 0.48);
}
.cs-premium-fab {
    background: linear-gradient(180deg, var(--cs-royal-mid) 0%, var(--cs-royal) 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(26, 44, 90, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.cs-premium-fab:hover {
    filter: brightness(1.1);
    box-shadow: 0 12px 36px rgba(26, 44, 90, 0.58);
}
/* 좌측 브랜드: 호버·포커스 시 너비/정렬 흔들림 방지 */
a.cs-center-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 250px;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none !important;
    color: inherit !important;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 2px 6px;
    margin: 0;
    vertical-align: middle;
    transition: opacity 0.2s ease;
}
a.cs-center-brand-link:hover {
    opacity: 0.95;
}
a.cs-center-brand-link:focus,
a.cs-center-brand-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--cs-navy-a);
}
a.cs-center-brand-link .cs-center-brand-text {
    min-width: 0;
}
.cs-header-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    background: linear-gradient(105deg, #1e293b 0%, #152a52 35%, #1a3c7a 62%, #2c52a3 100%);
    box-shadow: 0 2px 8px rgba(15, 31, 61, 0.2);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.cs-header-logout-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(26, 60, 122, 0.28);
    color: #fff !important;
}
.cs-header-mypage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.cs-login-body {
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
/* ========== 로그인: 와이드 랜드스케이프 · Bootstrap 그리드 ========== */
.cs-login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    overflow-x: hidden;
    font-family: var(--font, 'Pretendard', system-ui, sans-serif);
    font-weight: 400;
    background:
        radial-gradient(ellipse 120% 70% at 50% 0%, rgba(147, 197, 253, 0.28) 0%, transparent 50%),
        linear-gradient(180deg, #e4eaf3 0%, #eef2f8 50%, #dfe6f0 100%);
}
@media (min-width: 768px) {
    .cs-login-page {
        padding: 1.5rem 1.5rem;
    }
}
@media (min-width: 1200px) {
    .cs-login-page {
        padding: 1.5rem 2.5rem;
    }
}
.cs-login-page__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(255, 255, 255, 0.35) 100%);
    opacity: 0.5;
}
.cs-login-network-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
}
.cs-login-network-layer svg {
    width: 100%;
    height: 100%;
}
.cs-login-wide-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow:
        0 0.5rem 1.5rem rgba(15, 31, 61, 0.08),
        0 1.25rem 2.5rem rgba(15, 31, 61, 0.12),
        0 2.5rem 5rem -1rem rgba(26, 60, 122, 0.1);
}
@media (min-width: 992px) {
    .cs-login-wide-card {
        border-radius: 1.5rem;
    }
}
.cs-login-banner--hero {
    position: relative;
    overflow: hidden;
    min-height: 0;
    background:
        radial-gradient(ellipse 100% 80% at 10% 10%, rgba(91, 127, 212, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 50% 45% at 95% 90%, rgba(30, 58, 138, 0.38) 0%, transparent 50%),
        linear-gradient(158deg, #0a162e 0%, #122447 32%, #1a3c7a 65%, #0c1f3d 100%);
}
.cs-login-banner--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%, rgba(255, 255, 255, 0.03) 100%);
}
.cs-login-banner--hero .cs-login-banner__grain {
    opacity: 0.09;
}
.cs-login-banner--hero .cs-login-banner__diagonal {
    opacity: 0.045;
}
.cs-login-hero-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
}
.cs-login-hero-glass-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cs-login-hero-glass-orb--a {
    width: 10rem;
    height: 10rem;
    top: -3rem;
    right: -2rem;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cs-login-hero-glass-orb--b {
    width: 5.5rem;
    height: 5.5rem;
    bottom: 10%;
    left: -1rem;
    background: radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.1) 0%, transparent 68%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.cs-login-banner-inner {
    position: relative;
    z-index: 1;
    padding: 1.35rem 1.25rem 1.5rem;
}
@media (min-width: 992px) {
    .cs-login-banner-inner {
        padding: 1.75rem 2.75rem 1.85rem;
        max-width: 34rem;
        margin-left: auto;
        margin-right: auto;
    }
}
.cs-login-hero-title {
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #f8fafc;
}
@media (min-width: 992px) {
    .cs-login-hero-title {
        line-height: 1.2;
    }
}
.cs-login-lead {
    margin-top: 0.65rem;
    margin-bottom: 0;
    max-width: 100%;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(226, 232, 255, 0.93);
    word-break: keep-all;
}
@media (min-width: 992px) {
    .cs-login-lead {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}
.cs-login-phone {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.25;
    color: #f1f5ff;
}
.cs-login-info-box {
    position: relative;
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.cs-login-info-ip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cs-login-info-ip svg {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    opacity: 0.9;
}
.cs-login-info-ip__text {
    flex: 1;
    min-width: 0;
}
.cs-login-info-ip__main {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(241, 245, 255, 0.98);
}
@media (min-width: 992px) {
    .cs-login-info-ip__main {
        font-size: 1rem;
    }
}
.cs-login-info-ip__main strong {
    font-weight: 700;
    color: #fff;
}
.cs-login-info-ip__sub {
    margin-top: 0.3rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 400;
}
@keyframes csFadeInUp {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cs-login-banner-animate > * {
    animation: csFadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.cs-login-banner-animate > *:nth-child(1) { animation-delay: 0.02s; }
.cs-login-banner-animate > *:nth-child(2) { animation-delay: 0.1s; }
@media (prefers-reduced-motion: reduce) {
    .cs-login-banner-animate > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
.cs-login-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-login-info-list li {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(241, 245, 255, 0.93);
    margin-bottom: 0.4rem;
}
@media (min-width: 992px) {
    .cs-login-info-list li {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }
}
.cs-login-info-list li:last-child {
    margin-bottom: 0;
}
.cs-login-check-ico {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.18rem;
}
.cs-login-info-list li.cs-login-info-list__emphasis {
    margin-top: 0.2rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fef3c7;
    font-weight: 500;
}
.cs-login-form-side {
    padding: 1.35rem 1.25rem 1.5rem;
    background: #fff;
}
@media (min-width: 992px) {
    .cs-login-form-side {
        padding: 1.75rem 1.5rem 1.85rem;
    }
}
.cs-login-form-title {
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e293b;
    line-height: 1.3;
}
.cs-login-field-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}
.cs-login-page .form-control-lg {
    border: 1px solid #d1d5db;
    font-size: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-radius: 0.5rem;
}
.cs-login-page .form-control-lg:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.2);
}
.cs-login-page .form-control-lg::placeholder {
    color: #9ca3af;
}
.cs-login-page .form-check {
    padding-left: 1.65rem;
}
.cs-login-page .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    margin-left: -1.65rem;
    border-color: #cbd5e1;
}
.cs-login-page .form-check-input:checked {
    background-color: #1877f2;
    border-color: #1877f2;
}
.cs-login-page .form-check-label {
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}
.cs-login-btn-flat {
    background-color: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    border-radius: 0.5rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}
.cs-login-btn-flat:hover {
    background-color: #166fe5 !important;
    border-color: #166fe5 !important;
    color: #fff !important;
}
.cs-login-btn-flat:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.35) !important;
}
.cs-login-alert-error {
    font-size: 0.875rem;
}
.cs-login-form-divider-lg {
    border-top: 1px solid #e5e7eb;
}
@media (min-width: 992px) {
    .cs-login-form-divider-lg {
        border-top: none;
        border-left: 1px solid #e5e7eb;
    }
}

/* —— Mypage tabs (was inline in mypage.php) —— */

#mpTabContent { padding: 1.5rem; min-height: min(34rem, 52vh); box-sizing: border-box; }

.cs-mp-nav-tabs .nav-link { font-weight: 600; color: #6c757d; border: none; padding: 0.85rem 1.25rem; border-radius: 0; }

.cs-mp-nav-tabs .nav-link:hover { color: #1a3c7a; border-color: transparent; }

.cs-mp-nav-tabs .nav-link.active { color: #1a3c7a; background: transparent; border: none; border-bottom: 3px solid #2c52a3; }

.cs-mp-tab-lead { margin-bottom: 1rem !important; }

.cs-mp-tab-alerts.cs-mp-tab-alerts--has { margin-bottom: 1rem; }



/* —— Layout utilities —— */

.cs-header-sticky { z-index: 1030; }

.cs-header-brand-icon { width: 2.25rem; height: 2.25rem; }

.cs-fab-add { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; line-height: 1; z-index: 1050; }

.cs-file-drop-zone {
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-file-drop-zone:hover,
.cs-file-drop-zone.cs-file-drop-active {
    border-color: var(--bs-primary) !important;
}

.cs-pre-wrap { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }

.cs-banner-icon-lg { width: 2.75rem; height: 2.75rem; }

.cs-banner-icon-md { width: 2.25rem; height: 2.25rem; }

.cs-attachment-row-exiting { opacity: 0; transform: translateX(10px); transition: opacity 0.22s ease, transform 0.22s ease; }

.cs-mp-narrow-card { max-width: 32rem; }

.cs-ticket-textarea {
    min-height: 10rem;
}

/* 문의 상세 본문: 접수 폼과 시각적 밀도 맞춤 */
.ticket-content.cs-ticket-view-content {
    min-height: 300px;
    line-height: 1.8;
}

.cs-ticket-table-fixed {
    table-layout: fixed;
}

/* 인트라넷과 동일한 쿨그레이 배경 */
body.cs-center-app.bg-light {
    background-color: #f8fafc !important;
}

.cs-center-app .card {
    min-width: 0;
    max-width: 100%;
}
