/* =========================================================
   장로회신학대학교 LMS 일반로그인 스타일 (loginview-general.php 전용)
   customloginview.php 와 같은 PUTS 톤을 쓰되,
   일반로그인 폼 하나만 있는 단독 카드 레이아웃이다.
   ========================================================= */

:root {
    --puts-navy: #122954;
    --puts-navy-deep: #0d1f3f;
    --puts-navy-soft: #1a3d6b;
    --puts-green: #34b292;
    --sky: #e8f4fc;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f4f7fb;
    --r-md: 12px;
    --r-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== 페이지 배경 (customloginview 와 동일한 톤) ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 85% 55% at 12% 18%, rgba(52, 178, 146, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 88% 78%, rgba(18, 41, 84, 0.07) 0%, transparent 60%),
        linear-gradient(165deg, #f8fbff 0%, #f4f8fc 24%, var(--sky) 50%, #f0f7fb 76%, #e8f0f7 100%);
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(18,41,84,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18,41,84,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000 0%, transparent 78%);
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Top Bar (로고 정중앙) ===== */
.topbar {
    padding: 32px 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.topbar__brand img {
    height: 48px;
    width: auto;
    display: block;
}
/* login_logo.png 에 'e강의실' 이 없어서 구분선 + 텍스트로 붙인다. */
.topbar__divider {
    width: 1px;
    height: 26px;
    background: rgba(18, 41, 84, 0.22);
}
.topbar__service {
    font-size: 19px;
    font-weight: 800;
    color: var(--puts-navy);
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ===== 본문 ===== */
.xn-login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vh, 56px) 24px;
    gap: 22px;
}

/* ===== 로그인 카드 ===== */
.login-card {
    width: 100%;
    max-width: 452px;
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid rgba(18, 41, 84, 0.06);
    box-shadow:
        0 24px 60px -20px rgba(18, 41, 84, 0.22),
        0 8px 20px -8px rgba(18, 41, 84, 0.08);
    padding: clamp(32px, 5vw, 44px) clamp(24px, 5vw, 40px) clamp(30px, 4vw, 38px);
    position: relative;
    overflow: hidden;
}
/* 상단 컬러 띠 */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--puts-navy) 0%,
        var(--puts-navy-soft) 50%,
        var(--puts-green) 100%);
}

.login-card__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--puts-navy);
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 26px;
}

/* 에러 토스트 자리 (운영: #xnLoginTostMsgContainer) */
#xnLoginTostMsgContainer.alert {
    display: none;
    background: #fef3f2;
    border: 1px solid #fecdd3;
    color: #b42318;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}
#xnLoginTostMsgContainer.alert.is-visible { display: block; }

/* ===== 폼 ===== */
form#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.field__label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--puts-navy);
    letter-spacing: -0.01em;
    margin-bottom: 7px;
}
.field { position: relative; }
.field input[name="login_user_id"],
.field input[name="login_user_password"] {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    font-size: 14.5px;
    background: #f8fafc;
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.field input::placeholder { color: #94a3b8; }
.field input:focus {
    border-color: var(--puts-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 41, 84, 0.08);
}
.field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}
.field:focus-within .field__icon { color: var(--puts-navy); }

.xn-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--puts-navy);
    color: #fff;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 6px;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 10px 22px -10px rgba(18, 41, 84, 0.55);
}
.xn-login-btn:hover {
    background: var(--puts-navy-deep);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(18, 41, 84, 0.65);
}
.xn-login-btn svg { width: 17px; height: 17px; }

/* ===== 통합 로그인으로 가는 버튼 ===== */
.xn-sso-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(18, 41, 84, 0.12);
    color: var(--puts-navy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 6px 16px -10px rgba(18, 41, 84, 0.35);
}
.xn-sso-switch-btn:hover {
    background: #fff;
    border-color: rgba(18, 41, 84, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -12px rgba(18, 41, 84, 0.45);
}
.xn-sso-switch-btn svg { width: 15px; height: 15px; }

/* ===== Footer ===== */
.site-footer {
    padding: 28px 24px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.site-footer__privacy {
    color: var(--puts-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.18s ease;
}
.site-footer__privacy:hover { color: var(--puts-navy-deep); }
.site-footer__copy {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.site-footer__motto {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.34em;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
    .topbar { padding: 24px 22px 0; }
    .topbar__brand { gap: 13px; }
    .topbar__brand img { height: 38px; }
    .topbar__divider { height: 20px; }
    .topbar__service { font-size: 16px; }
}
