/* 새 첫 화면 로그인 창 — public/css/he-hero.css 의 .lg-* 를 옮겨 둔 것(2026-11-10). 저쪽을 고치면 여기도 */
/* ----------------------------------------------------------------------
   로그인 모달 — /login 링크를 누르면 열린다.
   짝: resources/views/partials/login-modal.blade.php
   (히어로와 함께 첫 화면에서 쓰는 것이라 이 파일에 같이 둔다)
---------------------------------------------------------------------- */
.lg-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lg-modal[hidden] { display: none; }
.lg-dim { position: absolute; inset: 0; background: rgba(4, 20, 18, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.lg-panel {
    position: relative;
    width: 100%; max-width: 380px;
    background: #fff;
    border-radius: 14px;
    padding: 30px 28px 24px;
    box-shadow: 0 26px 70px rgba(3, 25, 22, .42);
    animation: lgIn .18s ease-out;
}
@keyframes lgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg-panel { animation: none; } }

.lg-x {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px;
    border: 0; border-radius: 8px;
    background: transparent; color: #64748b;
    font-size: 15px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.lg-x:hover { background: #f1f5f9; color: #0f172a; }

.lg-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.lg-sub { margin: 0 0 18px; font-size: 13.5px; color: #64748b; }

.lg-form { display: flex; flex-direction: column; gap: 10px; }
.lg-field {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1; border-radius: 8px;
    background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
.lg-field:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .14); }
.lg-field i { color: #64748b; font-size: 16px; width: 17px; text-align: center; }
.lg-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; font-family: inherit; color: #0f172a; min-width: 0; }

.lg-submit {
    margin-top: 6px; width: 100%;
    padding: 13px; border: 0; border-radius: 8px;
    background: #0f766e; color: #fff;
    font-size: 16px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .12s;
}
.lg-submit:hover { background: #0b5d56; }

.lg-forgot { display: block; margin-top: 14px; text-align: center; font-size: 14.5px; color: #475569; text-decoration: none; }
.lg-forgot:hover { color: #0f766e; text-decoration: underline; }

/* 로그인 실패 안내 — 아이디/비밀번호 오류, 승인 대기, 정지 계정 등 */
.lg-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13.5px;
    line-height: 1.5;
}
.lg-error i { font-size: 15px; line-height: 1.4; flex-shrink: 0; }

.lg-modal{z-index:200}
