/*
  hm-login.css

  로그인 관련 화면(login.skin.php / adult_verification_update.php)이
  공통으로 사용하는 스타일 모음.

  배치 위치: /테마/bootstrap5-basic/css/hm-login.css
  (adult_verification.css 등 다른 css 파일들과 같은 위치)

  사용하는 쪽에서 아래처럼 add_stylesheet()로 불러온다.

      add_stylesheet('<link rel="stylesheet" href="' . G5_THEME_CSS_URL . '/hm-login.css">', 120);

  주의: 카카오 버튼의 pill 스타일(.hm-kakao-pill-*)은 여기 포함되지 않는다.
  그건 social_login.skin.php 안에서 $hm_kakao_pill_style 플래그로 별도 관리된다.
*/

/* 페이지 진입 애니메이션 - 글씨 흐림 최소화 버전 */
@keyframes hmFadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hm-legal-notice,
.hm-cta-wrap,
.hm-sub-actions {
    opacity: 1;
    animation: hmFadeUp 0.38s ease-out both;
}

.hm-legal-notice {
    animation-delay: 0.03s;
}

.hm-cta-wrap {
    animation-delay: 0.09s;
}

.hm-sub-actions {
    animation-delay: 0.14s;
}

@media (prefers-reduced-motion: reduce) {

    .hm-legal-notice,
    .hm-cta-wrap,
    .hm-sub-actions {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

:root {
    --hm-orange: #ff6400;
    --hm-orange-soft: #fff4ed;
    --hm-text: #111;
    --hm-sub: #777;
    --hm-border: #e9e9e9;
    --hm-page-bg: #eeeeef;
    --hm-white: #fff;
    --hm-gray-section: #f5f5f5;
    --hm-kakao: #fee500;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Noto Sans KR", "Nanum Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--hm-page-bg);
    color: var(--hm-text);
}

body {
    width: 100%;
}

#main-container {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--hm-page-bg);
}


.hm-adult-shell {
    width: 100%;
    max-width: 550px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--hm-gray-section);
    overflow: hidden;
}

.hm-adult-inner {
    padding: 0;
}

.hm-white-panel {
    background: #fff;
    padding: 30px 15px 28px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 10px;
}

.hm-adult-hero {
    text-align: center;
    padding: 20px 0 18px;
}

.hm-legal-notice {
    text-align: center;
    margin: 0 auto 22px;
}

.hm-legal-notice img {
    display: block;
    width: 72px;
    margin: 0 auto 12px;
}

.hm-legal-notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    letter-spacing: -0.025em;
}

.hm-cta-wrap {
    position: relative;
    margin-top: 0;
}

/*
      .hm-kakao-btn / .hm-kakao-icon 은 카카오 버튼을 직접 하드코딩했을 때
      쓰던 클래스로, social_login.skin.php include 방식으로 되돌리면서
      더 이상 마크업에서 사용하지 않아 제거함.
      (버튼의 pill 스타일은 이제 social_login.skin.php 안의
      $hm_kakao_pill_style 플래그가 담당 — 아래 include 직전에 켜둠)
    */

.hm-kakao-badge {
    position: absolute;
    right: 10px;
    top: 38px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--hm-orange-soft);
    color: var(--hm-orange);
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    border: 1px solid rgba(255, 100, 0, 0.12);
}

/*
      카카오 버튼의 큰 필(pill) 스타일은 이제
      social_login.skin.php 자체에서 $hm_kakao_pill_style 플래그로 처리한다
      (하단 include 직전에 플래그를 켜둠).
      여기서는 이 페이지 컨텍스트에서 sns-wrap 컨테이너 여백만 살짝 정리한다.
    */
.hm-cta-wrap-social #sns_login.login-sns {
    margin: 0;
}

.hm-cta-wrap-social #sns_login .sns-wrap {
    display: block;
}

.hm-kakao-badge::after {
    content: "";
    position: absolute;
    right: 16px;
    top: -4px;
    width: 8px;
    height: 8px;
    background: var(--hm-orange-soft);
    border-left: 1px solid rgba(255, 100, 0, 0.12);
    border-top: 1px solid rgba(255, 100, 0, 0.12);
    transform: rotate(45deg);
    border-radius: 1px;
}

.hm-sub-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 9px 9px;
    row-gap: 6px;
    margin-top: 2px;
}

.hm-sub-actions a,
.hm-sub-actions button {
    border: 0;
    background: transparent;
    color: var(--hm-sub);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    letter-spacing: -0.025em;
}

.hm-sub-actions a:hover,
.hm-sub-actions button:hover {
    color: var(--hm-orange);
}

.hm-sub-actions .divider {
    width: 1px;
    height: 10px;
    background: #ddd;
}

.hm-login-fold {
    display: none;
    margin-top: 16px;
    /* padding: 14px; */
    border-radius: 10px;
    /* background: #f7f7f7; */
}

.hm-login-fold.is-open {
    display: block;
}

.hm-login-input {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 11px;
    font-size: 13px;
    margin-bottom: 7px;
    outline: none;
    color: #111;
    background: #fff;
    font-family: inherit;
}

.hm-login-input::placeholder {
    color: #aaa;
}

.hm-login-input:focus {
    border-color: var(--hm-orange);
    box-shadow: 0 0 0 2px rgba(255, 100, 0, 0.08);
}

.hm-login-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--hm-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.hm-error-message {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff2f2;
    color: #d33;
    font-size: 12px;
    text-align: center;
}

/*
      '지금 가장 많이 보는 글' 영역은 popular_bbs() 함수가 호출될 때마다
      자기 완결적으로 <style>까지 함께 출력하므로, 여기서 별도의
      hm-pop-* 클래스를 정의하지 않는다 (중복/충돌 방지).
    */

@media (max-width: 550px) {

    html,
    body,
    #main-container {
        background: #ffffff !important;
    }

    .hm-adult-shell {
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;
    }

    .hm-adult-inner {
        padding: 0;
    }

    .hm-white-panel {
        padding: 30px 15px 26px;
        border-radius: 0 0 22px 22px;
    }
}

@media (max-width: 360px) {
    .hm-adult-inner {
        padding: 26px 12px 0;
    }

    .hm-white-panel {
        padding: 26px 12px 24px;
        border-radius: 0 0 20px 20px;
    }

    .hm-legal-notice img {
        width: 66px;
        margin-bottom: 10px;
    }

    .hm-legal-notice p {
        font-size: 12px;
    }

    .hm-kakao-badge {
        right: 8px;
        top: 38px;
        font-size: 10px;
    }
}

/* 홈 바로가기 */
.hm-home-link-wrap {
    text-align: center;
    padding: 22px 15px 0;
}

.hm-home-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: #999;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.hm-home-link:hover {
    color: var(--hm-orange);
    text-decoration: none;
}

.hm-home-link .arrow {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.hm-home-link:hover .arrow {
    transform: translateX(2px);
}

/* 회사 정보 푸터 */
.hm-company-footer {
    margin-top: 18px;
    padding: 18px 15px 30px;
    text-align: center;
}

.hm-company-footer .copyright {
    font-size: 11.5px;
    font-weight: 500;
    color: #9d9d9d;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hm-company-footer .info-line {
    font-size: 11px;
    color: #bbb;
    line-height: 1.9;
    margin: 0;
    letter-spacing: -0.01em;
}

.hm-company-footer .info-line .item {
    display: inline-block;
    white-space: nowrap;
}