@charset "UTF-8";

/* ==========================================================================
   화천(HWACHEON) Login
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff !important;
    color: #111111;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-main-container {
    width: 100%;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4.5rem;
    box-sizing: border-box;
    background-color: #ffffff;
}

.login-section {
    width: 100%;
    padding: 4rem 0 6rem;
}

.max-layout-width-large {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
    box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. 대형 2열 그리드 레이아웃
   ────────────────────────────────────────────────────────────────────────── */
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    justify-items: center;
}

.login-brand-logo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-hero-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.brand-hero-logo:hover {
    transform: scale(1.02);
}

.login-form-box {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-category-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: #888888;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.login-title {
    font-family: 'Jost', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111111;
    margin: 0 0 1rem 0;
}

.login-desc {
    font-size: 1.05rem;
    color: #555555;
    margin: 0 0 3rem 0;
    word-break: keep-all;
    line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────────
   2. 공식 가이드라인 준수 SNS 로그인 버튼
   ────────────────────────────────────────────────────────────────────────── */
.sns-login-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.btn-sns-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    border-radius: 12px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sns-icon-wrapper {
    position: absolute;
    left: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sns-svg-icon {
    width: 22px;
    height: 22px;
}

.sns-svg-icon.google-svg {
    width: 24px;
    height: 24px;
}

.sns-label-text {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.btn-naver {
    background-color: #03C75A;
}

.btn-naver .sns-label-text {
    color: #FFFFFF;
}

.btn-naver:hover {
    background-color: #02b350;
    box-shadow: 0 8px 20px rgba(3, 199, 90, 0.28);
}

.btn-kakao {
    background-color: #FEE500;
}

.btn-kakao .sns-label-text {
    color: #000000;
}

.btn-kakao:hover {
    background-color: #fada00;
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.35);
}

.btn-google {
    background-color: #FFFFFF;
    border-color: #747775;
}

.btn-google .sns-label-text {
    color: #1F1F1F;
}

.btn-google:hover {
    background-color: #F8F9FA;
    border-color: #1f1f1f;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.login-footer-info {
    margin-top: 2.8rem;
    width: 100%;
}

.info-notice {
    font-size: 0.88rem;
    color: #888888;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

.reveal-element {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── STAGE 1. 초고해상도 노트북 및 일반 데스크톱 (Max 1440px) ── */
@media (max-width: 1440px) {
    .max-layout-width-large {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    .login-grid {
        gap: 4.5rem;
    }
    .brand-hero-logo {
        max-width: 500px;
    }
    .login-title {
        font-size: 2.7rem;
    }
}

/* ── STAGE 2. 일반 랩톱 및 중형 모니터 (Max 1200px) ── */
@media (max-width: 1200px) {
    .max-layout-width-large {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .login-section {
        padding: 3.5rem 0 5rem;
    }
    .login-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .brand-hero-logo {
        max-width: 360px;
    }
    .login-form-box {
        align-items: center;
        text-align: center;
        max-width: 480px;
    }
    .login-title {
        font-size: 2.4rem;
    }
    .login-desc {
        margin-bottom: 2.2rem;
    }
}

/* ── STAGE 3. 태블릿 디바이스 및 가로 뷰포트 (Max 1024px) ── */
@media (max-width: 1024px) {
    .login-main-container {
        padding-top: 4.2rem;
        min-height: calc(100vh - 4.2rem);
    }
    .max-layout-width-large {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    .brand-hero-logo {
        max-width: 300px;
    }
    .login-title {
        font-size: 2.2rem;
    }
    .login-desc {
        font-size: 0.98rem;
    }
    .btn-sns-login {
        height: 56px;
    }
}

/* ── STAGE 4. 대형 모바일 & 미니 태블릿 (Max 768px) ── */
@media (max-width: 768px) {
    .login-main-container {
        padding-top: 3.9rem;
        min-height: calc(100vh - 3.9rem);
    }
    .login-section {
        padding: 2.5rem 0 4rem;
    }
    .max-layout-width-large {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .login-grid {
        gap: 2.2rem;
    }
    .brand-hero-logo {
        max-width: 240px;
    }

    .sub-category-tag {
        font-size: 0.82rem;
        margin-bottom: 0.6rem;
    }
    .login-title {
        font-size: 1.95rem;
        margin-bottom: 0.6rem;
    }
    .login-desc {
        font-size: 0.92rem;
        margin-bottom: 1.8rem;
    }

    .sns-login-group {
        gap: 0.9rem;
    }
    .btn-sns-login {
        height: 52px;
        border-radius: 10px;
    }
    .sns-icon-wrapper {
        left: 1.4rem;
        width: 20px;
        height: 20px;
    }
    .sns-svg-icon {
        width: 18px;
        height: 18px;
    }
    .sns-svg-icon.google-svg {
        width: 20px;
        height: 20px;
    }
    .sns-label-text {
        font-size: 0.94rem;
    }

    .login-footer-info {
        margin-top: 2rem;
    }
    .info-notice {
        font-size: 0.82rem;
    }
}

/* ── STAGE 5. 스마트폰 세로 모드 최하단 레이어 (Max 479px) ── */
@media (max-width: 479px) {
    .login-main-container {
        padding-top: 3.8rem;
        min-height: calc(100vh - 3.8rem);
    }
    .login-section {
        padding: 2rem 0 3rem;
    }
    .max-layout-width-large {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    .login-grid {
        gap: 1.8rem;
    }

    .brand-hero-logo {
        max-width: 180px;
    }

    .sub-category-tag {
        font-size: 0.76rem;
        margin-bottom: 0.4rem;
    }
    .login-title {
        font-size: 1.65rem;
        margin-bottom: 0.5rem;
    }
    .login-desc {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .sns-login-group {
        gap: 0.75rem;
    }
    .btn-sns-login {
        height: 48px;
        border-radius: 8px;
    }
    .sns-icon-wrapper {
        left: 1.1rem;
        width: 18px;
        height: 18px;
    }
    .sns-svg-icon {
        width: 16px;
        height: 16px;
    }
    .sns-svg-icon.google-svg {
        width: 18px;
        height: 18px;
    }
    .sns-label-text {
        font-size: 0.88rem;
    }

    .login-footer-info {
        margin-top: 1.5rem;
    }
    .info-notice {
        font-size: 0.76rem;
        line-height: 1.45;
    }
}