html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "Malgun Gothic", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 상단 */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111827;
}

.brand img {
    height: 42px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 22px;
    font-weight: 700;
}

.brand-text span {
    font-size: 12px;
    color: #6b7280;
}

.top-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.top-links a {
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}

.top-links a:hover {
    color: #2563eb;
}

/* 메인 */
.main-hero {
    flex: 1;
    display: flex;
    align-items: center;
}

.main-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1.2fr 420px;
    gap: 28px;
    align-items: stretch;
}

.hero-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero-panel h1 {
    margin: 0 0 14px 0;
    font-size: 34px;
    line-height: 1.3;
    color: #111827;
}

.hero-panel p.lead {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.info-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: #111827;
}

.info-item span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* 로그인 카드 */
.login-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #111827;
}

.login-card .sub {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6b7280;
}

.alert {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #111827;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.login-links {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
}

.login-links a {
    color: #2563eb;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* 하단 안내 */
.bottom-note {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
}

.bottom-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

/* 푸터 */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 13px;
    color: #6b7280;
}

/* 반응형 */
@media (max-width: 900px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel h1 {
        font-size: 28px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .topbar-inner,
    .main-inner,
    .bottom-note,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-panel,
    .login-card {
        padding: 22px;
        border-radius: 14px;
    }

    .brand img {
        height: 36px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .hero-panel h1 {
        font-size: 24px;
    }

    .hero-panel p.lead {
        font-size: 14px;
    }
}