/*
 * 로그인 섹션 배경
 */
.login-section {
    padding: 6.5rem 0 7.5rem;
    background:
            radial-gradient(circle at top left, rgba(31, 58, 95, 0.05) 0, transparent 32%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

/*
 * 로그인 페이지 전용 히어로 레이아웃
 */
.login-section .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
    align-items: start;
    gap: 4.5rem;
    min-height: calc(100vh - var(--header-height) - 9rem);
}

.login-section .hero-copy,
.login-copy {
    text-align: left;
    max-width: 34rem;
}

.login-section .hero-visual,
.login-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

/*
 * 왼쪽 텍스트 영역
 */
.login-section .hero-badge,
.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--color-point);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.05);
}

.login-section .hero-title,
.login-title {
    margin: 1.25rem 0 0;
    font-size: clamp(2.5rem, 5vw, 3.625rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #111111;
    word-break: keep-all;
}

.login-section .hero-desc,
.login-desc {
    margin: 1.25rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #444c56;
    max-width: 32rem;
    word-break: keep-all;
}

/*
 * 오른쪽 로그인 폼 카드 영역
 */
.login-frame {
    position: relative;
    width: 100%;
    max-width: 30rem;
    padding: 1rem;
    border-radius: 2rem;
}

.login-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    filter: blur(0.25rem);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    padding: 2.25rem 2rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 1.75rem;
    box-shadow: 0 1.25rem 3.5rem rgba(17, 17, 17, 0.10);
    backdrop-filter: blur(1rem);
}

.login-main-set {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/*
 * 로그인 폼
 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.visual-label {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

/*
 * input 필드 스타일
 */
.input-field {
    width: 100%;
    height: 3.375rem;
    padding: 0 1rem;
    border: 1px solid #d7dde5;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    color: #111111;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-field::placeholder {
    color: #9aa3af;
}

.input-field:hover {
    border-color: #b7c1cc;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-point);
    box-shadow: 0 0 0 0.25rem rgba(31, 58, 95, 0.12);
}

/*
 * 로그인 버튼
 */
.login-btn {
    width: 100%;
    height: 3.5rem;
    margin-top: 0.25rem;
    border-radius: 0.9375rem;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 0.75rem 1.5rem rgba(31, 58, 95, 0.15);
}

.login-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 1rem 2rem rgba(31, 58, 95, 0.2);
}

/*
 * 인증 링크 (일반 회원가입 이동)
 */
.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-sub-text);
    margin-top: -0.125rem;
}

.auth-links a {
    color: var(--color-point);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

/*
 * 상태 메시지
 */
.login-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-alert {
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.error-message {
    background-color: #fff0f0;
    color: #d14343;
    border: 1px solid #ffd2d2;
}

.logout-message {
    background-color: #f0f7ff;
    color: var(--color-point);
    border: 1px solid #cfe4ff;
}

/*
 * 성공 메시지 (회원가입 완료 시)
 */
.success-message {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/*
 * 소셜 로그인 섹션 레이아웃
 */
.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.25rem;
}

/*
 * 소셜 로그인 구분선
 */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #8a9099;
    font-size: 0.8125rem;
    font-weight: 500;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e7ebf0;
}

.social-divider span {
    padding: 0 0.875rem;
}

/*
 * 소셜 로그인 버튼 그룹
 */
.social-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/*
 * 소셜 로그인 버튼 공통 스타일
 */
.btn-social {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: 0 1rem 0 3.25rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.btn-social:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(17, 17, 17, 0.08);
}

.social-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
}

/*
 * 카카오 로그인 버튼 스타일
 */
.btn-kakao {
    background-color: #FEE500;
    color: #191600;
}

.btn-kakao:hover {
    background-color: #f3dc00;
}

/*
 * 네이버 로그인 버튼 스타일
 */
.btn-naver {
    background-color: #03C75A;
    color: #ffffff;
}

.btn-naver:hover {
    background-color: #02b350;
}

/*
 * 구글 로그인 버튼 스타일
 */
.btn-google {
    background-color: #ffffff;
    color: #333333;
    border-color: #dcdcdc;
}

.btn-google:hover {
    background-color: #fafafa;
    border-color: #cfcfcf;
}

/*
 * 페이스북 로그인 버튼 스타일
 */
.btn-facebook {
    background-color: #1877F2;
    color: #ffffff;
}

/*
 * 회원가입 폼 전용 레이아웃 (가로 정렬 필드용)
 */
.input-group-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

/*
 * 입력 필드 하단 안내 문구 스타일
 */
.input-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/*
 * 에러 발생 시 힌트 강조 (필요 시 사용)
 */
.error-message + .input-hint {
    color: #e74c3c;
}

/*
 * 반응형 태블릿 최적화
 */
@media (max-width: 75rem) {
    .login-section {
        padding: 5rem 0 6rem;
    }

    .login-section .hero-inner {
        gap: 3rem;
        min-height: auto;
    }

    .login-title {
        font-size: clamp(2.25rem, 4vw, 3.125rem);
    }
}

/*
 * 반응형 모바일 최적화
 */
@media (max-width: 61.25rem) {
    .login-section .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .login-section .hero-copy,
    .login-copy {
        max-width: 100%;
    }

    .login-section .hero-visual,
    .login-visual {
        justify-content: center;
    }

    .login-frame {
        max-width: 100%;
        padding: 0;
    }

    .login-frame::before {
        inset: 0.375rem;
    }
}

@media (max-width: 48rem) {
    .login-section {
        padding: 4rem 0 5rem;
    }

    .login-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .login-desc {
        font-size: 1rem;
        line-height: 1.65;
    }

    .login-card {
        padding: 1.625rem 1.25rem;
        border-radius: 1.375rem;
    }

    .login-main-set {
        gap: 1.25rem;
    }

    .login-form {
        gap: 1rem;
    }

    .input-field {
        height: 3.125rem;
        font-size: 0.9375rem;
    }

    .login-btn {
        height: 3.25rem;
    }

    .btn-social {
        min-height: 3.125rem;
    }
}

@media (max-width: 33.75rem) {
    .login-section {
        padding: 3.25rem 0 4rem;
    }

    .login-badge {
        min-height: 2rem;
        padding: 0 0.875rem;
        font-size: 0.75rem;
    }

    .login-title {
        font-size: 1.875rem;
    }

    .login-desc {
        font-size: 0.9375rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.125rem;
    }

    .message-alert {
        font-size: 0.8125rem;
    }

    .social-divider span {
        padding: 0 0.625rem;
    }

    .social-icon {
        left: 0.875rem;
    }
}
