/*
 * 로그인 화면 — bemypet.kr '로그인 확정안' 디자인 이식.
 * 원본: bemypet_web_2 styles/login.module.scss (feat/login-ui-confirmed)
 * SCSS 모듈을 워드프레스용 일반 CSS 로 옮겼다. 값은 원본과 동일하게 유지한다.
 * 브레이크포인트 768px 는 web2 $breakPoint-mobile 과 같다.
 */

.bmp-login {
    width: 100%;
    background-color: #fff;
}

.bmp-login__contents {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px 56px;
    box-sizing: border-box;
}

.bmp-login__panel {
    width: 400px;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: transparent;
    padding: 0;
}

.bmp-login__title {
    margin: 0;
    padding: 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    color: #191919;
}

.bmp-login__subtitle {
    margin: 10px 0 0;
    font-size: 13px;
    color: #707070;
}

/* 보조 수단 행과 약관 사이 간격 — 이메일 폼이 닫혀 있을 때 너무 붙지 않도록 */
.bmp-login__icons + .bmp-login__tos {
    margin-top: 32px;
}

/* 주 수단 — 네이버·카카오 pill */
.bmp-login__primary {
    width: 100%;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bmp-login__slot {
    position: relative;
}

.bmp-login__pill {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.bmp-login__pill:hover {
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.1);
}

.bmp-login__pill:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.bmp-login__pill--naver {
    background-color: #03c75a;
    color: #fff;
}

.bmp-login__pill--kakao {
    background-color: #fee500;
    color: #191919;
}

.bmp-login__pill img,
.bmp-login__pill svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* '마지막으로 로그인' 뱃지 */
.bmp-login__badge {
    position: absolute;
    top: -10px;
    right: 12px;
    z-index: 1;
    padding: 4px 10px;
    background-color: #191919;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 10px 10px 10px 2px;
    pointer-events: none;
}

.bmp-login__divider {
    width: 100%;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bmp-login__divider-line {
    flex: 1;
    height: 1px;
    background-color: #e4e4e6;
}

.bmp-login__divider-text {
    font-size: 12px;
    color: #868688;
}

/* 보조 수단 — 44px 원형 아이콘 */
.bmp-login__icons {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.bmp-login__icon-slot {
    position: relative;
}

.bmp-login__icon-slot .bmp-login__badge {
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 10px;
}

.bmp-login__icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bmp-login__icon img {
    width: 44px;
    height: 44px;
    display: block;
}

.bmp-login__icon:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.bmp-login__icon--email {
    background-color: #f2f2f2;
    color: #707070;
    font-size: 18px;
}

.bmp-login__icon--email.is-open {
    background-color: #191919;
    color: #fff;
}

/* 이메일 폼 */
.bmp-login__email-form {
    width: 100%;
    margin-top: 32px;
    display: none;
    flex-direction: column;
    text-align: left;
}

.bmp-login__email-form.is-open {
    display: flex;
}

.bmp-login__label {
    font-size: 12px;
    color: #707070;
    margin-top: 12px;
}

.bmp-login__input {
    width: 100%;
    height: 44px;
    border: none;
    border-bottom: 1px solid #e4e4e6;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: transparent;
}

.bmp-login__input:focus {
    outline: none;
    border-bottom-color: #191919;
}

.bmp-login__submit {
    width: 100%;
    height: 48px;
    margin-top: 27px;
    border: none;
    border-radius: 30px;
    background-color: #fcd11e;
    color: #191919;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.bmp-login__error {
    margin: 8px 0 0;
    font-size: 12px;
    color: #e5484d;
    min-height: 16px;
}

.bmp-login__actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}

.bmp-login__actions a {
    color: #707070;
    text-decoration: none;
}

.bmp-login__actions a:hover {
    text-decoration: underline;
}

.bmp-login__tos {
    margin-top: 24px;
    font-size: 11px;
    color: #868688;
}

.bmp-login__tos a {
    color: #868688;
    text-decoration: underline;
}

/* 모바일 */
@media only screen and (max-width: 768px) {
    .bmp-login__contents {
        padding: 16px 28px 40px;
    }

    .bmp-login__panel {
        width: 100%;
    }

    .bmp-login__title {
        font-size: 22px;
    }
}

/*
 * 기존 bemypet-firebase-public.css 가 ID 선택자로 잡아둔 구 로그인 스타일 무력화.
 * 같은 페이지에 함께 로드되고 ID 가 클래스보다 우선순위가 높아 덮어써야 한다.
 * (특히 p#firebase-email-error 는 내용이 비어도 분홍 배경을 칠했다)
 */
.bmp-login p#firebase-email-error {
    background-color: transparent;
    border-radius: 0;
    margin: 8px 0 0;
    padding: 0;
    color: #e5484d;
}

.bmp-login p#firebase-email-error:empty {
    display: none;
}

.bmp-login #firebase-email-form,
.bmp-login div#firebase-email-form,
.bmp-login form#firebase-email-form {
    max-width: none;
    margin: 32px 0 0;
    padding: 0;
    font-size: inherit;
}

.bmp-login div#firebase-form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.bmp-login #firebase-email-submit {
    width: 100%;
    max-width: none;
    height: 48px;
    margin-top: 27px;
    border: none;
    border-radius: 30px;
    background-color: #fcd11e;
    color: #191919;
    font-size: 14px;
    font-weight: 700;
}

/* 브라우저 자동완성 배경(연파랑) 제거 — 확정안 입력창은 밑줄만 */
.bmp-login__input:-webkit-autofill,
.bmp-login__input:-webkit-autofill:hover,
.bmp-login__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #191919;
}
