/* ===========================================================================
   로그인 / 회원가입 (/login, /join) 공용 스타일
   시안이 따로 없어 서브페이지 공통 톤(48px 갈색 제목 + 1170 컨테이너)에 맞춘다.
   =========================================================================== */

.auth {
    padding: 100px 0 120px;
}

.auth .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--c-brown);
}

.auth__lead {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    color: var(--c-body);
}

.auth-form {
    width: 460px;
    max-width: 100%;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--c-title);
}

.field label b {
    font-weight: 500;
    color: var(--c-brown-mid);
}

.field__optional {
    font-weight: 400;
    color: var(--c-body);
}

.field input {
    height: 56px;
    padding: 0 20px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: var(--c-text);
    transition: border-color 0.2s ease;
}

.field input::placeholder {
    color: #b8b8b8;
}

.field input:focus {
    border-color: var(--c-brown-mid);
}

/* 브라우저 기본 검증이 잡아낸 입력만 빨갛게 (빈 채로 진입했을 때는 표시하지 않는다) */
.field input:not(:placeholder-shown):invalid {
    border-color: #d05a4a;
}

/* 입력 규칙 안내 (필수 조합 설명 등) */
.field__hint {
    margin-top: -8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-body);
}

/* 안내문 — 내용이 있을 때만 자리를 차지한다 */
.auth-form__notice:empty {
    display: none;
}

.auth-form__notice {
    padding: 14px 16px;
    border-radius: 4px;
    background-color: #f6f2ee;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-brown-mid);
}

.auth-form__notice.is-error {
    background-color: #fbeeec;
    color: #c0453a;
}

.auth-form__submit:disabled {
    background-color: #c9bcb0;
    cursor: default;
}

.auth-form__submit {
    height: 60px;
    border-radius: 4px;
    background-color: var(--c-brown-mid);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    transition: background-color 0.2s ease;
}

.auth-form__submit:hover {
    background-color: var(--c-brown-dark);
}

/* 아이디/비밀번호 찾기 */
.auth__find {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    color: var(--c-body);
}

.auth__find a {
    position: relative;
    transition: color 0.2s ease;
}

.auth__find a + a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background-color: #d5d5d5;
}

.auth__find a:hover {
    color: var(--c-brown-mid);
}

.auth__switch {
    margin-top: 24px;
    font-size: 16px;
    color: var(--c-body);
}

.auth__switch a {
    font-weight: 500;
    color: var(--c-brown-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .auth {
        padding: 60px 0 70px;
    }

    .auth__title {
        font-size: 28px;
    }

    .auth-form {
        margin-top: 35px;
        gap: 18px;
    }

    .field input {
        height: 50px;
    }

    .auth__lead {
        margin-top: 14px;
        font-size: 15px;
    }

    .auth-form__submit {
        height: 54px;
        font-size: 16px;
    }
}
