﻿@charset "utf-8";
/* ============================================================
   WebINCVideo — 고객지원 동영상 안내 사이트 공통 스타일
   - MasterPage 미사용: 페이지 수가 적어 CSS 파일 하나로 통일
   - PC/모바일 반응형 (개발전달문서 11절)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Segoe UI", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
    color: #1e293b;
    background: #f1f5f9;
    -webkit-text-size-adjust: 100%;
}

img, video {
    max-width: 100%;
}

/* ============================================================
   로그인 페이지
   ============================================================ */

.login-body {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    padding: 40px 36px 32px 36px;
    text-align: center;
}

.login-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px auto;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.login-icon svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    margin-left: 4px; /* 재생 삼각형 시각 중심 보정 */
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.login-sub {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}

.login-field {
    text-align: left;
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-btn {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.05s;
}

.login-btn:hover {
    filter: brightness(1.08);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn[disabled] {
    background: #94a3b8;
    cursor: not-allowed;
}

.login-error {
    display: block;
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    line-height: 1.5;
}

.login-footer {
    margin-top: 26px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.6;
}

/* ============================================================
   상단 바 (목록 페이지)
   ============================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.brand-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    margin-left: 2px;
}

.btn-logout {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-logout:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

/* ============================================================
   본문 컨테이너
   ============================================================ */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 26px 20px 40px 20px;
}

.page-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 22px;
}

/* ============================================================
   동영상 플레이어 영역
   ============================================================ */

.player-box {
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
}

.player-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-close {
    flex: none;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
}

.player-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.player-box video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000000;
}

/* ============================================================
   동영상 그룹/목록
   ============================================================ */

.video-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #eef2f7;
    background: #fbfcfe;
}

.group-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    flex: none;
}

.group-count {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    background: #eef2f7;
    padding: 3px 10px;
    border-radius: 999px;
}

.video-list {
    list-style: none;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.12s;
}

.video-item:last-child {
    border-bottom: 0;
}

.video-item:hover {
    background: #f6f9fd;
}

.video-item.active {
    background: #eff6ff;
}

.video-num {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef2f7;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-item.active .video-num {
    background: #2563eb;
    color: #ffffff;
}

.video-title {
    flex: 1;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.45;
    word-break: keep-all;
}

.btn-play {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    color: #2563eb;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-play svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.video-item:hover .btn-play,
.btn-play:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.video-item.active .btn-play {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* 목록이 비어 있을 때 */
.empty-state {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 60px 24px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   하단 푸터 / 로그아웃 페이지
   ============================================================ */

.site-footer {
    text-align: center;
    padding: 10px 16px 34px 16px;
    font-size: 12.5px;
    color: #94a3b8;
}

.logout-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.logout-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 44px 36px;
    text-align: center;
}

.logout-card h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.logout-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 26px;
}

.btn-primary-link {
    display: inline-block;
    padding: 12px 34px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    text-decoration: none;
    transition: filter 0.15s;
}

.btn-primary-link:hover {
    filter: brightness(1.08);
}

/* ============================================================
   모바일 대응
   ============================================================ */

@media (max-width: 560px) {
    .topbar-inner {
        height: 54px;
        padding: 0 14px;
    }

    .brand {
        font-size: 15px;
        gap: 9px;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
    }

    .container {
        padding: 16px 12px 32px 12px;
    }

    .login-card {
        padding: 32px 24px 26px 24px;
    }

    .group-title {
        padding: 14px 14px;
        font-size: 15px;
    }

    .video-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .video-title {
        font-size: 14px;
    }

    .btn-play {
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .player-head {
        padding: 10px 12px;
    }
}
