/* ── 로그인 페이지 전용 스타일 ── */
.login-wrap {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--bg);
}

.login-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    width: 140px;
    display: block;
}

.login-title {
    font-size: clamp(20px, 6vmin, 26px);
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: clamp(4px, 1.2vmin, 8px);
    text-align: center;
}

.login-sub {
    font-size: clamp(13px, 3.8vmin, 15px);
    color: var(--text-muted);
    margin-bottom: clamp(24px, 6vmin, 40px);
    text-align: center;
    line-height: 1.6;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.login-field {
    margin-bottom: 14px;
}

.login-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.login-input:focus {
    border-color: var(--accent);
}

.login-btn {
    width: 100%;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity .15s;
}

.login-btn:active {
    opacity: 0.85;
}

.login-demo-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-demo-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.login-footer {
    margin-top: 32px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

/* ── 메인 앱 레이아웃 ── */
#app {
    display: none;
}

#app.logged {
    display: block;
}

/* ── 공지 배너 ── */
.itw-notice-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.itw-notice-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.itw-notice-scroll {
    overflow: hidden;
    flex: 1;
}

.itw-notice-items {
    display: flex;
    gap: 24px;
    animation: itwMarquee 22s linear infinite;
    width: max-content;
}

.itw-notice-items a {
    font-size: 13px;
    white-space: nowrap;
    opacity: 0.8;
    text-decoration: none;
    color: inherit;
}

.itw-notice-more {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-decoration: none;
}

@keyframes itwMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── 홈 히어로 카드 ── */
.home-hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

.hero-card {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 18px 14px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: box-shadow .15s, transform .12s;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hc-color, var(--accent));
}

.hero-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.hero-card-icon {
    font-size: 28px;
}

.hero-card-title {
    font-size: clamp(13.5px, 3.8vmin, 15.5px);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.hero-card-sub {
    font-size: clamp(11px, 3.2vmin, 12.5px);
    color: var(--text-muted);
    line-height: 1.45;
}


/* ── 최근 공지 목록 ── */
.home-notice-list {
    margin: 0 12px 12px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.home-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
}

.home-notice-header-title {
    font-size: 13px;
    font-weight: 700;
}

.home-notice-header-more {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.home-notice-item {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: var(--text);
}

.home-notice-item:last-child {
    border-bottom: none;
}

.home-notice-item:active {
    background: var(--bg);
}

.home-notice-cat {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-notice-text {
    flex: 1;
    font-size: clamp(13px, 3.8vmin, 15px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-notice-date {
    font-size: clamp(11px, 3.2vmin, 12.5px);
    color: var(--text-muted);
    margin-left: 8px;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* ── 전시대 미리보기 ── */
.stand-preview {
    margin: 0 12px 12px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.stand-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
}

.stand-preview-title {
    font-size: 13px;
    font-weight: 700;
}

.stand-preview-more {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.stand-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.stand-slot:last-child {
    border-bottom: none;
}

.stand-slot-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    width: 42px;
    /* 고정 폭 확보 */
    flex-shrink: 0;
    /* 좁은 화면에서도 줄어들지 않음 */
    text-align: center;
}

.stand-slot-date-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.stand-slot-info {
    flex: 1;
}

.stand-slot-loc {
    font-size: 13.5px;
    font-weight: 600;
}

.stand-slot-time {
    font-size: 11.5px;
    color: var(--text-muted);
}

.stand-slot-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* 섹션 라벨 */
.section-label {
    padding: 16px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}