@charset "utf-8";

:root {
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --border: rgba(226, 232, 240, 0.8);
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, "Noto Sans KR", sans-serif; }
html { -webkit-text-size-adjust: 100%; }
body { background-color: #f1f5f9; color: var(--slate-800); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

#kt_login { width: 100%; min-height: 100vh; display: flex; flex-direction: column; }

/* GNB */
header.site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; flex-shrink: 0; }
.header-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 32px; width: auto; max-width: 100%; }

/* Hero Wrapper with Background Image */
.hero-wrapper {
    flex: 1;
    position: relative;
    background: linear-gradient(254deg, rgb(185 186 187 / 54%) 0%, rgba(241, 245, 249, 0.88) 100%), url('/resources/login/images/login-hero-bg.png') no-repeat center bottom / cover;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
        "intro login"
        "details login";
    gap: 48px 48px;
    align-items: start;
}

.hero-intro { grid-area: intro; }
.login-card { grid-area: login; align-self: center; }
.hero-details { grid-area: details; }

/* Hero Intro */
.hero-intro h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: var(--dark); line-height: 1.4; margin-bottom: 16px; letter-spacing: -0.02em; word-break: keep-all; }
.hero-intro h1 .hero-title-line { display: block; }
.hero-intro h1 .hero-title-accent { color: var(--primary); }
.hero-intro .subtitle { font-size: clamp(0.9rem, 2.2vw, 1.05rem); color: #3d4861; margin-bottom: 0; word-break: keep-all; line-height: 1.6; }
.hero-intro .subtitle .subtitle-line { display: block; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.feature-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-md); transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; flex-shrink: 0; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.feature-card p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.5; word-break: keep-all; }

/* Quick Support Action Bar */
.quick-support { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support-card { min-width: 0; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow-md); }
.support-icon { font-size: 26px; color: var(--primary); flex-shrink: 0; }
.support-info { min-width: 0; }
.support-info .label { font-size: 12px; color: var(--slate-600); font-weight: 600; }
.support-info .val { font-size: clamp(1rem, 3vw, 1.125rem); font-weight: 800; color: var(--dark); }
.remote-btn { min-width: 0; width: 100%; background: var(--dark); color: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; border: none; padding: 16px; transition: background 0.2s; box-shadow: var(--shadow-md); }
.remote-btn:hover { background: #1e293b; }

/* Right Column: Glassmorphism Login Card */
.login-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 18px; padding: 40px 32px; box-shadow: var(--shadow-xl); width: 100%; }
.login-header { margin-bottom: 28px; }
.login-header h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.login-header p { font-size: 0.875rem; color: var(--slate-600); word-break: keep-all; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-800); margin-bottom: 8px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 14px; color: var(--slate-400); font-size: 15px; pointer-events: none; }
.input-wrapper input { width: 100%; height: 46px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 14px 0 40px; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; background: #ffffff; -webkit-appearance: none; appearance: none; }
.input-wrapper input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15); }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 13px; }
.checkbox-container { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--slate-600); }
.checkbox-container input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }

.btn-login { width: 100%; height: 48px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.25); }
.btn-login:hover { background: var(--primary-hover); }

.card-footer-info { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--slate-400); line-height: 1.4; word-break: keep-all; }

/* Footer */
footer.site-footer { background: #ffffff; border-top: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; width: 100%; }
.footer-container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-info { font-size: 13px; color: var(--slate-600); line-height: 1.6; }
.footer-info address { font-style: normal; display: inline; }
.footer-info .footer-divider { margin: 0 8px; }
.footer-copyright { font-size: 12px; color: var(--slate-400); }
.footer-links a { color: var(--slate-600); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--primary); }
.is-hidden { display: none !important; }

/* Hidden legacy forms for JS compatibility */
.login-legacy-hidden { display: none !important; }

/* ── Tablet (≤960px) ── */
@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "login"
            "details";
        padding: 36px 20px;
        gap: 28px;
    }

    .login-card { align-self: stretch; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
    .header-container { padding: 12px 16px; }
    .brand img { height: 28px; }

    .hero-wrapper { align-items: flex-start; }
    .hero-section { padding: 24px 16px 32px; gap: 24px; }

    .feature-grid { grid-template-columns: 1fr; margin-bottom: 24px; }
    .feature-card { padding: 18px; }
    .feature-card:hover { transform: none; }

    .quick-support { grid-template-columns: 1fr; gap: 12px; }
    .support-card,
    .remote-btn { width: 100%; }

    .login-card { padding: 28px 20px; border-radius: 14px; }
    .login-header { margin-bottom: 20px; }

    footer.site-footer { padding: 20px 0; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; gap: 8px; }
    .footer-info { font-size: 12px; }
    .footer-info .footer-divider { display: none; }
    .footer-info address,
    .footer-info .footer-phone { display: block; }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
    .hero-section { padding: 20px 12px 28px; }
    .login-card { padding: 24px 16px; }
    .support-card { padding: 14px; gap: 12px; }
    .remote-btn { font-size: 14px; padding: 14px; }
}

/* 터치 기기 hover 효과 제거 */
@media (hover: none) {
    .feature-card:hover { transform: none; box-shadow: var(--shadow-md); }
}
