﻿
html {
    -webkit-text-size-adjust: 100%;
}

body.page-login {
    min-height: 100vh;
    /* 하늘색 계열 그라데이션 (에코시즌WG 컨셉) */
    background: linear-gradient(135deg,#e0f2fe 0%, #bae6fd 40%, #a5d8ff 100%);
}

/* 가운데 카드랩 */
.eswg-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
/* 반투명 카드 */
.eswg-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 30px rgba(15,76,129,.15);
    padding: 28px 24px 20px;
}

.eswg-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 16px;
}

    .eswg-brand img {
        height: 56px;
        width: auto;
        display: block;
    }

.eswg-title {
    font-weight: 800;
    color: #0c4a6e;
    font-size: 22px;
    line-height: 1.2;
    margin-top: 10px;
}

.eswg-sub {
    color: #0369a1;
    font-size: 12px;
    margin-top: 2px;
    
}

.mt-4 {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.text-gray-400 {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-primary-700 {
    --tw-text-opacity: 1;
    color: rgb(3 105 161 / var(--tw-text-opacity, 1));
}

.justify-between {
    justify-content: space-between;
}

a {
    color: inherit;
    text-decoration: inherit;
}

/* 입력 영역 */
.eswg-field {
    margin-bottom: 14px;
}

    .eswg-field .form-control {
        height: 44px;
        border-radius: 10px;
        border: 1px solid #d1d5db; /* Bootstrap input과 자연스럽게 */
        box-shadow: none;
        width:97%;
    }

        .eswg-field .form-control:focus {
            border-color: #38bdf8;
            outline: 0;
            box-shadow: 0 0 0 3px rgba(56,189,248,.25);
        }

/* 버튼: 기존 id 유지 (bootstrapValidator/submit 이벤트 유지됨) */
#btn_Apply {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: #0284c7;
    color: #fff;
    font-weight: 700;
    transition: all .2s ease;
}

    #btn_Apply:hover {
        background: #0369a1;
    }

/* 하단 링크줄 */
.eswg-links {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-weight: 800;
    font-size: 13px;
}

    .eswg-links a {
        color: #0f172a;
        text-decoration: none;
    }

        .eswg-links a:hover {
            text-decoration: underline;
        }

/* 메시지 영역 */
#sp_getMsg p {
    text-align: center;
    font-weight: 700;
    color: #0c4a6e;
    padding: 8px 0 14px 0;
    margin: 0;
}

/* 이하 모달/기타 기존 스타일 유지 (원본 코드에서 사용) */
.has-error .help-block {
    color: red;
    padding: 0;
    margin: 0 0 10px 0;
    display: inline-block;
}
/* 배너, 모달 등 기존 내부 스타일 원본 유지 */

/* ========= 로그인 카드 중앙 정렬 보정 (추가/덮어쓰기용) ========= */

/* 보장: html/body 높이가 100% 되어야 flex centering이 정확 */
html, body {
    height: 100%;
    margin: 0; /* 브라우저 기본 마진 제거 */
    -webkit-text-size-adjust: 100%;
}

/* wrapper/login-area의 불필요한 상/하 패딩 제거(대부분의 경우 중앙 위치를 밀어냄) */
.wrapper,
.login-area {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 정확한 수직/수평 중앙 정렬: 상하 패딩은 제거, 좌우는 약간의 여유만 */
.eswg-center {
    min-height: 100vh; /* 전체 뷰포트 높이 기준 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-top: 0 !important; /* <-- 상단 패딩 제거 */
    padding-bottom: 0 !important; /* <-- 하단 패딩 제거 */
    box-sizing: border-box;
}

/* 카드 자체의 마진/transform 초기화 (이미지 로딩 후 shift 방지) */
.eswg-card {
    margin: 0 auto;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
}

/* 카드 내부 로고/제목이 크면 카드가 커지는 것만 허용하되, 상단 여백을 과도하게 만들진 않음 */
.eswg-brand {
    margin-top: 0; /* 필요시 8px 정도로 조절 가능 */
    margin-bottom: 12px;
}

/* 데스크탑 브라우저 주소창 이슈(모바일에서 100vh 문제 보정) */
@supports (height: 100dvh) {
    .eswg-center {
        min-height: 100dvh; /* 더 정확한 뷰포트 높이 단위 사용 가능시 적용 */
    }
}

/* 페이드/애니메이션으로 인해 의도치 않게 translateY가 남아있다면 강제 제거 */
.eswg-field,
#btn_Apply {
    transition: opacity .35s ease, transform .35s ease, height .35s ease, margin .35s ease, padding .35s ease;
    transform: none !important;
}

/* 아주 작은 뷰포트에서 top offset 필요하면 미디어 쿼리로 보정 (선택사항) */
@media (max-height: 600px) {
    .eswg-center {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}


/* === Select 박스, input 스타일과 동일하게 맞추기 === */
.input-box {
    margin-bottom: 14px;
}
/* input 간격과 동일 */

select.form-control,
#language.form-control {
    height: 44px; /* input과 동일 높이 */
    line-height: 44px; /* 텍스트 수직정렬 보조 */
    width: 97%; /* 기존 input 폭과 동일 */
    border-radius: 10px;
    border: 1px solid #d1d5db;
    box-shadow: none;
    background-color: #fff;
    padding: 0 40px 0 12px; /* 오른쪽 여백: 커스텀 화살표 공간 */
    font-size: 14px;
    color: #0f172a;
    /* 네이티브 셀렉트 화살표 제거 & 커스텀 화살표 추가 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 다운 화살표(SVG) */
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%235b6b7a'>\
<path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

    /* 포커스 효과: input과 동일 */
    select.form-control:focus,
    #language.form-control:focus {
        border-color: #38bdf8;
        outline: 0;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, .25);
    }

    /* 비활성화 상태 */
    select.form-control:disabled,
    #language.form-control:disabled {
        background-color: #f8fafc;
        color: #94a3b8;
        cursor: not-allowed;
    }

    /* IE/Edge 레거시(삼각형 제거) */
    select.form-control::-ms-expand,
    #language.form-control::-ms-expand {
        display: none;
    }

/* 고해상도에서 화살표가 너무 붙어 보이면 미세 조정 */
@media (min-width: 768px) {
    select.form-control,
    #language.form-control {
        background-position: right 14px center;
    }
}

