:root {
    --blue: #0088FF;
    --disabled-blue: #CCE6FF;
    --white: #FEFEFE;
    --black: #000000;
    --border: #D6C9BE;
    --placeholder: #D8CFC7;
    --input-focus: #512314;
    --error: #A64327;
}
html {
    font-size: 62.5%;
}

body {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1.6rem;
    color: var(--black);
    background-color: #f0f0f0;
}

#wrap {
    width: 100%;
    max-width: 390px;
    min-height: 100dvh;
    margin: 0 auto;
    background-color: var(--white);
}

/* Figma 시안의 iPhone 상태 표시줄 - 화면 비교용 */
header {
    position: relative;
    height: 157px;
}

.back_btn {
    position: absolute;
    top: 0;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: url("img/back_icon.svg") no-repeat center / 24px;
}

.brand_logo {
    position: absolute;
    top: 56px;
    left: 50%;
    display: block;
    width: 183px;
    height: 44px;
    transform: translateX(-50%);
    background: url("img/login_sprite.png") 0 0 / 200px 125px no-repeat;
}

main {
    padding: 1px 20px 70px;
}

.login_title {
    display: block;
    margin-bottom: 5px;
    font-size: 1.6rem;
    line-height: 22px;
    font-weight: 700;
}

.field + .field {
    margin-top: 7px;
}

fieldset {
    min-width: 0;
}

.input_box {
    position: relative;
}

.input_box input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background-color: var(--white);
    color: #171717;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 500;
}

.input_box input::placeholder {
    color: var(--placeholder);
    font-weight: 500;
    opacity: 1;
}

.input_box input:focus {
    border-color: var(--input-focus);
}

.password_field input {
    padding-right: 55px;
}

.password_toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 28px;
    height: 27px;
    transform: translateY(-50%);
    background: url("img/login_sprite.png") 0 -95px / 200px 125px no-repeat;
}

.password_toggle[aria-pressed="true"] {
    opacity: .55;
}

.error_message {
    display: none;
    margin-top: 8px;
    color: var(--error);
    font-size: 1.3rem;
    line-height: 18px;
    font-weight: 700;
}

.field.is_error .error_message {
    display: block;
}

.login_option {
    display: flex;
    align-items: center;
    gap: 63px;
    margin-top: 17px;
    margin-left: 2px;
}

.login_option label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 26px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1.4rem;
}

.login_option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.check_visual {
    display: inline-block;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    background: url("img/checkbox_inactive.svg") no-repeat center / contain;
}

.login_option input:checked + .check_visual {
    background-image: url("img/checkbox_active.svg");
}

.login_option input:focus-visible + .check_visual {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.login_btn {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border-radius: 26px;
    color: var(--white);
    background-color: var(--blue);
    font-family: inherit;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
}

.login_btn:disabled {
    background-color: var(--disabled-blue);
    cursor: default;
}

.account_links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 17px;
    font-size: 1.3rem;
    line-height: 20px;
    font-weight: 500;
}

.account_links a + a::before {
    content: "|";
    display: inline-block;
    margin: 0 6px;
    color: #898989;
}

.sns_login {
    width: 288px;
    max-width: 100%;
    margin: 106px auto 0;
    text-align: center;
}

.sns_heading {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #777;
    font-size: 1.2rem;
    line-height: 13px;
    white-space: nowrap;
}

.sns_heading::before,
.sns_heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ECECEC;
}

.sns_list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
    margin-top: 30px;
}

.sns_btn {
    display: block;
    width: 49px;
    height: 50px;
    flex: 0 0 49px;
    background-image: url("img/login_sprite.png");
    background-repeat: no-repeat;
    background-size: 200px 125px;
}

.sns_btn.kakao {
    background-position: 0 -45px;
}
.sns_btn.naver {
    background-position: -49px -45px;
}
.sns_btn.samsung {
    background-position: -98px -45px;
}
.sns_btn.apple {
    background-position: -147px -45px;
}

@media (max-width: 360px) {
    .login_option {
        gap: 22px;
    }

    .login_option label {
        gap: 9px;
        font-size: 1.3rem;
    }
}
