/* accounts/login.html 전용 스타일 */
/* ===== 레이아웃: sticky footer + 배경 (메인 페이지와 동일 패턴) ===== */
.index-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 62px);
    overflow-x: hidden;
}

#login-page-header {
    background: url('/static/images/main/main_bg3.png') top center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 0 auto;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,248,235,0.50) 0%, rgba(250,240,210,0.30) 50%, rgba(60,40,10,0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

@supports (height: 100dvh) {
    .index-page {
        min-height: calc(100dvh - 62px);
    }
}

@supports (height: 100svh) {
    .index-page {
        min-height: calc(100svh - 62px);
    }
}

/* 터치 기기/모바일: background-attachment:fixed 깨짐 방지 */
@media (hover: none) and (pointer: coarse) {
    #login-page-header { background-attachment: scroll; }
}
@media (max-width: 767px) {
    #login-page-header { background-attachment: scroll !important; }
}

/* ===== 로그인 카드 내부 요소 ===== */
.login-btn {
    background: #faa716;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    padding: 12px 32px;
    box-shadow: 0 4px 12px rgba(250, 167, 22, 0.25);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.login-btn:hover,
.login-btn:focus,
.login-btn:active {
    background: #f0982a;
    color: #fff;
    box-shadow: 0 6px 16px rgba(250, 167, 22, 0.35);
    transform: translateY(-1px);
}
.login-btn:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* 가입 링크 */
.login-links-primary {
    margin: 18px 0 14px;
    font-size: 14px;
}
.login-links-primary a {
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-links-primary a:hover {
    color: #faa716;
    text-decoration: none;
}
.login-links-primary a:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
    border-radius: 4px;
}
.login-links-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #d7ccc8;
    margin: 0 12px;
    vertical-align: middle;
}

/* 도움말 링크 */
.login-links-help {
    border-top: 1px solid #f0e6d6;
    padding: 14px 0 24px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.login-links-help a {
    font-size: 13px;
    color: #8d6e63;
    text-decoration: underline;
    text-underline-offset: 2px;
    letter-spacing: -0.1px;
    transition: color 0.2s ease;
}
.login-links-help a:hover {
    color: #faa716;
    text-decoration: underline;
}
.login-links-help a:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 비밀번호 보기 토글 */
.pw-toggle {
    background: none;
    border: 0;
    padding: 0;
    color: #8d6e63;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.pw-toggle:hover { color: #faa716; }
.pw-toggle:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}
.pw-toggle .material-icons { font-size: 20px; }

/* ===== 모바일: 카드 중앙 정렬 + 적정 너비 =====
   데스크톱은 flex + align-items:center로 수직 중앙.
   모바일은 카드가 길어질 수 있어 block + padding으로 전환. */
@media (max-width: 767px) {
    #login-page-header {
        display: block;
        padding: 100px 0 40px;
    }
    #login-page-header .container {
        width: 100%;
        box-sizing: border-box;
    }
    #login-page-header .login-card-col {
        float: none;
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
    }
    #login-page-header .card.card-signup {
        max-width: 360px;
        margin: 0 auto;
    }
}

/* 인라인 style 제거용 클래스 */
#login-page-header .login-container {
    position: relative;
    z-index: 2;
}
#login-page-header .card-title img {
    width: 110px;
}
#login-page-header .flash-inline {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
}
