/* ==================================================
   PetCity 로그인 페이지
   경로: static/css/member/login.css
================================================== */


/* ==================================================
   기본 설정
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-width: 320px;
    background: #f5f7fb;
    color: #222;
    font-family: "Pretendard", Arial, sans-serif;
}


/* ==================================================
   로그인 전체 영역
================================================== */

.login-wrap {
    width: 100%;
    min-height: calc(100vh - 180px);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 50px 20px 70px;
}


/* ==================================================
   로그인 박스
================================================== */

.login-box {
    width: 100%;
    max-width: 460px;

    padding: 50px;

    background: #ffffff;

    border: 1px solid #e8edf5;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.login-box h1 {
    margin-bottom: 30px;

    color: #1f2937;

    font-size: 42px;
    font-weight: 700;
    text-align: center;
}

.login-box h3 {
    margin-bottom: 20px;

    color: #1f2937;

    font-size: 24px;
    font-weight: 700;
}


/* ==================================================
   로그인 오류 메시지
================================================== */

.login-error {
    margin-bottom: 20px;
    padding: 14px 16px;

    background: #fff1f2;
    color: #dc2626;

    border: 1px solid #fecdd3;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}


/* ==================================================
   SNS 로그인 버튼
================================================== */

.sns-btn {
    width: 100%;

    display: block;

    margin-bottom: 14px;
    padding: 16px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            opacity 0.2s ease;
}

.sns-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.sns-btn:active {
    transform: translateY(0);
}

.sns-btn.google {
    background: #ffffff;
    color: #222222;

    border: 1px solid #d9d9d9;
}

.sns-btn.google:hover {
    background: #f8fafc;
}

.sns-btn.kakao {
    background: #fee500;
    color: #191919;

    border: 1px solid #fee500;
}

.sns-btn.kakao:hover {
    background: #f4dc00;
}

.sns-btn.naver {
    background: #03c75a;
    color: #ffffff;

    border: 1px solid #03c75a;
}

.sns-btn.naver:hover {
    background: #02b351;
}


/* ==================================================
   구분선
================================================== */

.divider {
    position: relative;

    margin: 35px 0;

    text-align: center;
}

.divider::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    height: 1px;

    background: #e2e8f0;
}

.divider span {
    position: relative;
    z-index: 1;

    padding: 0 18px;

    background: #ffffff;
    color: #94a3b8;

    font-size: 14px;
}


/* ==================================================
   일반 로그인 폼
================================================== */

#loginForm {
    width: 100%;
}

#loginForm label {
    display: block;

    margin-top: 18px;
    margin-bottom: 8px;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}

#loginForm input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    background: #ffffff;
    color: #222222;

    border: 1px solid #d8dee9;
    border-radius: 10px;

    font-family: inherit;
    font-size: 15px;

    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
}

#loginForm input::placeholder {
    color: #9ca3af;
}

#loginForm input:hover {
    border-color: #aeb8c8;
}

#loginForm input:focus {
    outline: none;

    border-color: #2f6fed;

    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.13);
}


/* ==================================================
   비밀번호 입력 영역
================================================== */

.password-input-wrap {
    position: relative;

    width: 100%;
}

.password-input-wrap input {
    padding-right: 72px !important;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 12px;

    width: auto;

    margin: 0;
    padding: 6px 8px;

    transform: translateY(-50%);

    background: transparent;
    color: #2f6fed;

    border: 0;
    border-radius: 6px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
            background 0.2s ease,
            color 0.2s ease;
}

.password-toggle-btn:hover {
    background: #eef4ff;
    color: #1d4ed8;

    transform: translateY(-50%);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid #2f6fed;
    outline-offset: 1px;
}


/* ==================================================
   일반 로그인 버튼
================================================== */

#loginBtn {
    width: 100%;

    margin-top: 28px;
    padding: 16px;

    background: #2f6fed;
    color: #ffffff;

    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
            background 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

#loginBtn:hover:not(:disabled) {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(47, 111, 237, 0.25);
}

#loginBtn:active:not(:disabled) {
    transform: translateY(0);
}

#loginBtn:disabled {
    background: #94a3b8;

    cursor: not-allowed;

    opacity: 0.8;
    transform: none;
    box-shadow: none;
}


/* ==================================================
   아이디 찾기 / 비밀번호 찾기
================================================== */

.bottom-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 25px;

    font-size: 14px;
    text-align: center;
}

.bottom-link a {
    color: #64748b;

    text-decoration: none;

    transition: color 0.2s ease;
}

.bottom-link a:hover {
    color: #2f6fed;
    text-decoration: underline;
}

.bottom-link span {
    color: #cbd5e1;
}


/* ==================================================
   회원가입 링크
================================================== */

.signup-link {
    margin-top: 22px;
    padding-top: 20px;

    color: #64748b;

    border-top: 1px solid #edf0f5;

    font-size: 14px;
    text-align: center;
}

.signup-link a {
    margin-left: 5px;

    color: #2f6fed;

    font-weight: 700;
    text-decoration: none;

    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


/* ==================================================
   키보드 접근성
================================================== */

.sns-btn:focus-visible,
#loginBtn:focus-visible,
.bottom-link a:focus-visible,
.signup-link a:focus-visible {
    outline: 3px solid rgba(47, 111, 237, 0.35);
    outline-offset: 3px;
}


/* ==================================================
   태블릿 / 모바일
================================================== */

@media (max-width: 768px) {

    .login-wrap {
        min-height: calc(100vh - 120px);

        padding: 35px 20px 55px;
    }

    .login-box {
        max-width: 440px;

        padding: 40px 32px;

        border-radius: 16px;
    }

    .login-box h1 {
        margin-bottom: 26px;

        font-size: 36px;
    }

    .login-box h3 {
        font-size: 22px;
    }

}


/* ==================================================
   작은 모바일
================================================== */

@media (max-width: 480px) {

    .login-wrap {
        padding: 25px 14px 45px;
    }

    .login-box {
        padding: 32px 22px;

        border-radius: 14px;
    }

    .login-box h1 {
        margin-bottom: 24px;

        font-size: 32px;
    }

    .login-box h3 {
        font-size: 20px;
    }

    .sns-btn {
        padding: 14px;

        font-size: 14px;
    }

    .divider {
        margin: 28px 0;
    }

    #loginForm input {
        height: 50px;

        font-size: 14px;
    }

    #loginBtn {
        padding: 15px;

        font-size: 15px;
    }

    .bottom-link {
        gap: 7px;

        font-size: 13px;
    }

    .signup-link {
        font-size: 13px;
    }

}