/* =====================================================
   login.css — 로그인 페이지
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=DM+Sans:wght@300;400;500;700&display=swap');

.login-page {
    min-height: 100dvh;
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
}

.login-container {
    width: 100%;
    min-height: 100dvh;
    display: flex;
}

/* ── 좌측 히어로 패널 ── */
.login-hero {
    display: none;
    flex: 1;
    background: linear-gradient(150deg, #2d2d2d 0%, #4a4a4a 50%, #c8900a 100%);
    padding: 48px 56px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(200,144,10,0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.hero-top { position: relative; z-index: 1; }

.hero-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #8a8a8a;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.hero-logo span { color: #c8900a; }

.hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.hero-bottom { position: relative; z-index: 1; }

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(4px);
}

.hero-badge-icon { font-size: 20px; flex-shrink: 0; }

.hero-badge-text {
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    font-weight: 500;
}

/* ── 우측 폼 패널 ── */
.login-form-panel {
    width: 100%;
    background: #f5f5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* ── 로그인 카드 ── */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    padding: 40px 36px;
}

/* ── 카드 상단 로고 ── */
.card-logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #8a8a8a;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.card-logo span { color: #c8900a; }

/* 로고 아이콘+텍스트 조합 */
.card-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.card-logo-icon { width: 44px; height: auto; }

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    margin-top: 24px;
}

.card-subtitle {
    font-size: 13px;
    color: #9a9a9a;
    margin-bottom: 28px;
}

/* ── 오류 배너 ── */
.alert-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 16px;
}
.alert-error.show { display: block; }

/* ── 성공 배너 ── */
.alert-success {
    display: none;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #15803d;
    font-weight: 600;
    margin-bottom: 16px;
}
.alert-success.show { display: block; }

/* ── 폼 ── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #5a5a5a;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-input-wrap { position: relative; }

.form-input {
    width: 100%;
    height: 48px;
    background: #f5f5f4;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
    color: #1a1a1a;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-input::placeholder { color: #b8b8b8; }

.form-input:focus {
    border-color: #c8900a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,144,10,0.12);
}

.form-input.has-icon { padding-right: 44px; }

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.input-icon-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #9a9a9a;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.input-icon-btn:hover { color: #5a5a5a; }

/* ── 에러 메시지 ── */
.form-error {
    display: none;
    font-size: 11px;
    color: #dc2626;
    margin-top: 5px;
    font-weight: 500;
}
.form-error.show { display: block; }

/* ── 로그인 버튼 ── */
.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #2d2d2d 0%, #c8900a 100%);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    letter-spacing: 0.3px;
    margin-top: 8px;
}

.btn-login:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); opacity: 1; }

/* ── 반응형 ── */
@media (min-width: 640px) {
    .login-form-panel { padding: 40px 32px; }
    .login-card       { padding: 48px 44px; }
}

@media (min-width: 1024px) {
    .login-hero       { display: flex; max-width: 460px; }
    .login-form-panel { flex: 1; padding: 48px; }
    .login-card       { max-width: 460px; }
}

@media (min-width: 1280px) {
    .login-hero  { max-width: 540px; padding: 60px 72px; }
    .hero-title  { font-size: 46px; }
}
