﻿/* ===== EcoSeason WG · Register form Final Version ===== */

/* 기본 색상 변수 */
:root {
    --primary-50: #e0f2fe;
    --primary-100: #bae6fd;
    --primary-200: #7dd3fc;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-300: #94a3b8;
    --border: #cfe8ff;
    --danger: #ef4444;
}

/* 전체 페이지 스타일 */
html, body {
    height: 100%
}

    body.page-register {
        font-family: "Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",Segoe UI,Roboto,Helvetica,Arial,sans-serif;
        color: var(--ink-900);
        background: radial-gradient(1200px 800px at 20% -10%, #dbeafe 0%, #e0f2fe 30%, #f8fbff 70%);
        margin: 0;
        padding: 0;
    }

/* 중앙 정렬 래퍼 */
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

/* 폼 컨테이너 */
.register_area .container {
    padding: 24px;
    width: 100%;
}

.join {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    border: 1px solid #e6f0ff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(2,132,199,.10);
    padding: 28px 22px 26px;
}

/* 인풋 박스 */
.inputbox {
    width: 100%
}

.inputstyle,
.select,
.register_area select.select,
.register_area .select {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-900);
    font-size: 15px;
    outline: none;
    transition: all .18s ease;
}

    .inputstyle::placeholder {
        color: var(--ink-500)
    }

    .inputstyle:focus,
    .register_area select.select:focus {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary-500) 25%, transparent);
    }

/* 읽기 전용 인풋 */
#D_UID[readonly],
#D_RecommenderName[readonly] {
    background: #eef6ff;
    color: var(--ink-700);
    cursor: not-allowed;
    border-color: #dbeafe;
}

/* 드롭다운 */
.register_area select.select {
    height: 48px;
    padding-right: 36px;
    background-image: linear-gradient(45deg,transparent 50%,var(--ink-500) 50%), linear-gradient(135deg,var(--ink-500) 50%,transparent 50%), linear-gradient(to right,transparent,transparent);
    background-position: calc(100% - 18px) 20px,calc(100% - 12px) 20px,100% 0;
    background-size: 6px 6px,6px 6px,2.5em 2.5em;
    background-repeat: no-repeat;
}

/* 검증 에러 텍스트 */
.has-error .help-block {
    margin: 6px 2px 0;
    padding: 0;
    color: var(--danger);
    font-size: 12px;
}

/* 버튼 정렬 */
.buttonarea {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

    .buttonarea > div {
        flex: 1
    }

#btn_Apply, #btn_Cancle {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .08s ease,box-shadow .2s ease,background .2s ease;
}

/* Signup 버튼 */
#btn_Apply {
    background: linear-gradient(180deg,var(--primary-500),var(--primary-600));
    color: #fff;
    box-shadow: 0 6px 14px rgba(2,132,199,.25);
}

    #btn_Apply:hover {
        filter: saturate(1.05)
    }

    #btn_Apply:active {
        transform: translateY(1px)
    }

/* Login 버튼 */
#btn_Cancle {
    background: #eef2f7;
    color: var(--primary-600);
    border-color: #dbe4f0;
}

    #btn_Cancle:hover {
        background: #e6edf7
    }

/* 입력 필드 간격 */
.form-group {
    margin: 0 0 14px
}

/* ===== 모바일 반응형 (핵심 수정) ===== */
html {
    -webkit-text-size-adjust: 100%
}

* {
    box-sizing: border-box
}

@media (max-width:480px) {
    .register_area .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .join {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 18px 12px 16px !important;
        border-radius: 18px !important;
    }

    .form-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .inputbox,
    .inputstyle,
    .register_area select.select,
    .select {
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
    }

    .register_area select.select {
        padding-right: 36px !important;
        background-position: calc(100% - 18px) 20px,calc(100% - 12px) 20px,100% 0 !important;
        background-size: 6px 6px,6px 6px,2.5em 2.5em !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .buttonarea {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 18px !important;
    }

    #btn_Apply, #btn_Cancle {
        width: 100% !important;
        height: 44px !important;
        font-size: 15px !important;
    }
}

/* 초소형 단말 대응 */
@media (max-width:360px) {
    .inputstyle, .register_area select.select {
        font-size: 14px !important;
    }
}
