/* ============================================================
   login.css - 로그인 페이지 전용 스타일 (grp_account/login.html)
   공유 클래스(btn-internal, btn_login 등)는 .login-page 스코프로 override
   ============================================================ */

/* 헤더 (뒤로가기 버튼) */
.login-page__header {
    display: flex;
    align-items: center;
    padding: 8px 0;
    background-color: #fff;
}

.login-page__back-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #191f28;
    padding: 0;
}

.login-page {
    width: 100%;
    min-height: calc(100vh - 62px);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 12px 40px;
    box-sizing: border-box;
    gap: 30px;
    font-family: 'SUIT', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #4e5968;
}

.login-page__logo {
    width: 130px;
    height: auto;
}

.login-page__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.login-page__section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 섹션 구분선 */
.login-page__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.login-page__divider-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background-color: #dbdbdb;
}

.login-page__divider-text {
    font-size: 13px;
    color: #4e5968;
    line-height: 19.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* 소셜 버튼 리스트 */
.login-page__social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 공통 소셜 버튼 (Naver, Toss 직접 마크업) */
.login-page__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    box-sizing: border-box;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    color: #191f28;
    font-family: inherit;
}

.login-page__btn-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 토스 섹션 (회색 박스) */
.login-page__toss-wrap {
    border-radius: 10px;
    background-color: #dbdbdb;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-page__toss-note {
    font-size: 12px;
    color: #4e5968;
    line-height: 18px;
    margin: 0;
    text-align: center;
}

/* 일반 로그인 폼 */
.login-page__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-page__input {
    height: 50px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    box-sizing: border-box;
    padding: 8px 12px;
    width: 100%;
    font-size: 13px;
    font-family: inherit;
    color: #4e5968;
    outline: none;
    display: block;
}

.login-page__input::placeholder {
    color: #a6a6a6;
    font-weight: 500;
}

/* 아이디 저장 */
.login-page__save-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.login-page__checkbox {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid #dbdbdb;
    box-sizing: border-box;
    cursor: pointer;
    accent-color: #ff7300;
    flex-shrink: 0;
    margin: 0;
}

.login-page__checkbox-label {
    font-size: 13px;
    color: #4e5968;
    line-height: 19.5px;
    font-weight: 500;
    cursor: pointer;
}

/* 로그인 버튼 */
.login-page__btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 5px;
    background-color: #ff7300;
    border: none;
    width: 100%;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
}

/* 하단 링크 */
.login-page__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.login-page__link {
    font-size: 13px;
    color: #4e5968;
    text-decoration: none;
    line-height: 19.5px;
    font-weight: 700;
}

.login-page__link-sep {
    font-size: 13px;
    color: #4e5968;
    vertical-align: top;
    display: inline-block;
    height: 24px;
}

/* ============================================================
   apple_button_login.php 공유 클래스 override (login-page 스코프)
   common.dev.css의 btn-internal, btn_login_icon 등을
   다른 페이지에 영향 없이 로그인 페이지에서만 재정의
   ============================================================ */

/* 래퍼 div 초기화 */
.login-page .btn-internal.btn_login {
    margin: 0;
    display: block;
    width: 100%;
}

/* Apple 링크 버튼 스타일 (공유 클래스 override) */
.login-page .btn-internal a.btn_internal_apple,
.login-page .btn-internal button.btn_internal_apple {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #dbdbdb;
    box-sizing: border-box;
    width: 100%;
    padding: 0;
    font-size: 17px;
    font-weight: 800;
    color: #191f28;
    text-align: center;
    font-family: inherit;
}

/* Apple 아이콘 — sprite 대신 SVG 이미지로, inline style top/left override */
.login-page .btn_login .btn_login_icon.apple {
    background-image: url('/m/1.0/common/img/login/logo_Apple.svg') !important;
    background-size: contain !important;
    background-position: center !important;
    width: 20px !important;
    height: 20px !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%);
}
