/**
 * 에이시티호스팅 (ACTHOSTING) - 프리미엄 하이엔드 로그인 스플릿 전용 CSS
 * 파일 경로: layouts/acthosting/css/login.css
 * 설명: Vultr 로그인 페이지의 웅장함과 세련미를 200% 오마주하여, 
 *       미려한 글래스모피즘과 스플릿 레이아웃, 초정밀 하이테크 반응형을 연출한 CSS.
 */

/* 1. 로그인 스플릿 컨테이너 */
.act-login-split-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
    font-family: 'Inter', 'Outfit', 'Noto Sans KR', sans-serif;
}

/* 2. 좌측: 화이트 로그인 카드 폼 영역 (45%) */
.act-login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background-color: #ffffff;
    animation: fadeInForm 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.act-login-card {
    width: 100%;
    max-width: 400px;
}

.act-login-title-group {
    margin-bottom: 35px;
}

.act-login-title-group h2 {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.8px;
    line-height: 1.3;
    margin: 0;
}

/* 라이믹스 유효성 검증 실패 에러 박스 */
.login-error-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
    animation: shakeError 0.4s ease-in-out;
}

.login-error-box i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 입력 필드 그룹 */
.act-login-field-group {
    margin-bottom: 20px;
}

.act-login-field-group .lbl {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.act-login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.act-login-input-wrapper .form-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
    transition: color 0.2s;
}

.act-login-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.act-login-input::placeholder {
    color: #94a3b8;
}

.act-login-input:focus {
    background-color: #ffffff;
    border-color: #007bfc;
    box-shadow: 0 0 0 4px rgba(0, 123, 252, 0.12);
}

.act-login-input:focus + .form-icon {
    color: #007bfc;
}

/* 유틸리티 행 (비밀번호 분실 링크 및 로그인 유지) */
.act-login-utils {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 28px;
}

.keep-signed-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.keep-signed-checkbox input {
    cursor: pointer;
}

.keep-signed-checkbox span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.forgot-password-link {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #007bfc;
}

/* 파란색 메인 로그인 버튼 */
.btn-login-submit {
    width: 100%;
    height: 54px;
    background-color: #007bfc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 252, 0.2);
}

.btn-login-submit:hover {
    background-color: #0066d6;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 123, 252, 0.3);
}

.btn-login-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 123, 252, 0.2);
}

.btn-login-submit i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-login-submit:hover i {
    transform: translateX(4px);
}

/* 가입 안내 링크 */
.act-login-signup-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.act-login-signup-prompt a {
    color: #007bfc;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.act-login-signup-prompt a:hover {
    text-decoration: underline;
}


/* 3. 우측: 딥 네이비 스페이스 브랜딩 영역 (55%) */
.act-login-right {
    flex: 1.2;
    background: radial-gradient(circle at 60% 40%, #0e1e44 0%, #070e1c 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    position: relative;
    color: #ffffff;
    box-shadow: inset 1px 0 0 0 rgba(255, 255, 255, 0.05);
    animation: fadeInBranding 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 우측 상단 문의 버튼 */
.btn-login-support {
    align-self: flex-end;
    font-size: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.btn-login-support:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 우측 중앙 로고 컨테이너 */
.login-branding-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(1.1);
}

/* 우측 하단 서비스 약관 링크 */
.login-right-footer {
    display: flex;
    gap: 30px;
}

.login-footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.login-footer-link:hover {
    color: #ffffff;
}


/* 4. 애니메이션 효과 */
@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInBranding {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}


/* 5. 하이테크 초정밀 반응형 브레이크포인트 */
@media (max-width: 1024px) {
    .act-login-right {
        display: none; /* 태블릿 및 모바일 규격에서는 우측 브랜딩 영역 숨겨서 사용성 보장 */
    }
    .act-login-left {
        padding: 60px 20px;
        background-color: #f8fafc; /* 모바일에선 조금 더 차분하고 고급스러운 연회색 배경 */
    }
    .act-login-card {
        max-width: 380px;
    }
    .mobile-login-logo {
        display: flex !important; /* 모바일에선 상단 로고 영역 강제 노출 */
    }
    
    /* 모바일 로고에도 조각 조립 & 텍스트 확장 모션 완벽 연동 */
    .mobile-login-logo .svg-logo__shape-1 {
        transform-origin: 15px 26px;
        animation: shapeAssemble1 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 0.1s;
    }
    .mobile-login-logo .svg-logo__shape-2 {
        transform-origin: 19px 15px;
        animation: shapeAssemble2 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 0.3s;
    }
    .mobile-login-logo .svg-logo__shape-3 {
        transform-origin: 26px 20px;
        animation: shapeAssemble3 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 0.5s;
    }
    .mobile-login-logo .svg-logo__shape-4 {
        transform-origin: 20px 24px;
        animation: shapeAssemble4 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 0.7s;
    }
    .mobile-login-logo .svg-logo__text {
        animation: textExtend 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 1.0s;
    }
}

/* ==========================================================================
   6. 에이시티호스팅 (ACTHOSTING) SVG 로고 빌딩 & 텍스트 인터랙티브 모션
   ========================================================================== */
.login-branding-logo .act-logo {
    overflow: visible;
}

/* 로고 마크 각 4개 조각에 대한 입체적 시차 조립 애니메이션 */
.login-branding-logo .svg-logo__shape-1 {
    transform-origin: 15px 26px;
    animation: shapeAssemble1 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
}

.login-branding-logo .svg-logo__shape-2 {
    transform-origin: 19px 15px;
    animation: shapeAssemble2 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

.login-branding-logo .svg-logo__shape-3 {
    transform-origin: 26px 20px;
    animation: shapeAssemble3 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.5s;
}

.login-branding-logo .svg-logo__shape-4 {
    transform-origin: 20px 24px;
    animation: shapeAssemble4 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.7s;
}

/* 우측 영문 텍스트 - 조각 조립 완료 후 부드럽게 늘어나며 등장하는 하이테크 모션 */
.login-branding-logo .svg-logo__text {
    animation: textExtend 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1.0s;
}

/* 각 조각별 개별 조립 궤적 정의 (@keyframes) */
@keyframes shapeAssemble1 {
    0% {
        opacity: 0;
        transform: translate(-20px, 20px) scale(0.6);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes shapeAssemble2 {
    0% {
        opacity: 0;
        transform: translate(-15px, -15px) scale(0.6);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes shapeAssemble3 {
    0% {
        opacity: 0;
        transform: translate(25px, -15px) scale(0.6);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes shapeAssemble4 {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 영문 텍스트의 글자 간격(letter-spacing)이 좁은 상태에서 쓱 늘어나며 나타나는 애니메이션 */
@keyframes textExtend {
    0% {
        opacity: 0;
        letter-spacing: -4px;
        transform: translateX(-15px);
    }
    70% {
        opacity: 0.8;
        letter-spacing: 1px;
    }
    100% {
        opacity: 1;
        letter-spacing: 0.5px;
        transform: translateX(0);
    }
}

/* 로고 마우스 오버 시 미세 입체 펄스 인터랙티브 반응 */
.login-branding-logo:hover .act-logo {
    transform: scale(1.38) rotate(-1deg) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.login-branding-logo:hover .svg-logo__shape-1 {
    transform: translate(-1px, 1px) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.login-branding-logo:hover .svg-logo__shape-2 {
    transform: translate(-1px, -1px) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.login-branding-logo:hover .svg-logo__shape-3 {
    transform: translate(1.5px, -1px) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.login-branding-logo:hover .svg-logo__shape-4 {
    transform: scale(1.05) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   로그인 페이지 전용 프리미엄 네온 블루 둥근 버튼 디자인 (이미지 시안 100% 매칭)
   ========================================================================== */
.banner__button .acth-btn-login-premium {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 16px 24px !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important; /* 이미지 시안처럼 폰트 두께가 다소 단단함 */
    letter-spacing: -0.3px !important;
    color: #ffffff !important;
    background: none !important;
    background-color: #007bfc !important; /* 이미지 시안의 선명한 벌쳐 블루 컬러 탑재 */
    border: none !important;
    border-radius: 4px !important; /* 이미지 시안의 모서리 부드러운 둥글기 4px 완벽 탑재 */
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 123, 252, 0.2) !important; /* 은은한 블루 그림자 글로우 추가 */
    height: auto !important;
    text-shadow: none !important;
    transition: all 0.22s ease-in-out !important;
}

.banner__button .acth-btn-login-premium span {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.3px !important;
    display: inline-block !important;
}

.banner__button .acth-btn-login-premium:hover {
    background: none !important;
    background-color: #0062cc !important; /* 호버 시 한단계 진한 프리미엄 블루 컬러 매핑 */
    box-shadow: 0 6px 20px rgba(0, 123, 252, 0.35) !important; /* 호버 시 은은한 빛 반사 증가 */
    transform: translateY(-1px) !important;
}

.banner__button .acth-btn-login-premium .btn-arrow {
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    flex-shrink: 0 !important;
    opacity: 0.95 !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.banner__button .acth-btn-login-premium:hover .btn-arrow {
    transform: translateX(5px) !important;
    opacity: 1 !important;
}
