/* =====================================================
   JOIN.CSS - 라온인포텍 회원가입
   공통 초기화/폰트/배경은 common.css 담당
   ===================================================== */

/* 1. 전체 페이지 */
.page_wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.title_box {
    width: 100%;
    padding: 32px 16px 8px;
    text-align: center;
}
.title_box a {
    color: #192b4a;
    text-decoration: none;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    transition: color .2s ease;
}
.title_box a:hover { color: #4268ed; }

/* 2. 회원가입 카드 */
.join_area {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 20px 70px;
}
.join_box {
    width: 100%;
    max-width: 550px;
    padding: 38px 40px;
    background: #ffffff;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(28, 56, 101, .08);
}
.join_title {
    margin: 0 0 30px;
    color: #19253d;
    text-align: center;
    font-size: 29px;
    font-weight: 700;
}

/* 3. 공통 입력 */
.input_group { min-width: 0; margin-bottom: 20px; }
.input_group label {
    display: block;
    margin-bottom: 8px;
    color: #283954;
    font-size: 15px;
    font-weight: 600;
}
.input_group input,
.input_group select {
    width: 100%;
    height: 46px;
    min-width: 0;
    padding: 0 13px;
    border: 1px solid #cdd8e8;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #19253d;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.input_group input:focus,
.input_group select:focus {
    border-color: #4268ed;
    box-shadow: 0 0 0 3px rgba(66, 104, 237, .12);
}
.input_group input::placeholder { color: #8c9bb0; }
.input_info {
    display: block;
    margin-top: 7px;
    color: #697991;
    font-size: 12px;
    line-height: 1.5;
}
.validation_message {
    display: block;
    min-height: 17px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
}
.validation_message.valid { color: #19764a; }
.validation_message.invalid { color: #c62828; }

/* 4. 아이디 및 중복확인 */
.username_group { display: flex; gap: 10px; }
.username_group input { flex: 1; }
.check_button {
    width: 106px;
    height: 46px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: #4268ed;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.check_button:hover { background: #3153c9; }

/* 5. 부서/직책 및 이메일 */
.select_row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.select_row .input_group { width: 100%; }
.email_group { display: flex; align-items: center; gap: 8px; }
.email_group input { flex: 1; }
.email_group .at { color: #53657f; font-size: 18px; }
.email_group select { width: 168px; flex-shrink: 0; }

/* 6. 하단 버튼 */
.button_group { display: flex; gap: 12px; margin-top: 30px; }
.join_button,
.reset_button {
    flex: 1;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background .2s;
}
.join_button { border: 1px solid #4268ed; background: #4268ed; color: #ffffff; }
.join_button:hover { background: #3153c9; }
.reset_button { border: 1px solid #cdd8e8; background: #f4f7fc; color: #31425e; }
.reset_button:hover { background: #e7eef9; }
.back_home { margin-top: 25px; text-align: center; }
.back_home a { color: #53657f; text-decoration: none; font-size: 14px; }
.back_home a:hover { color: #4268ed; text-decoration: underline; }

/* 7. 모바일 */
@media (max-width: 767px) {
    .title_box { padding-top: 24px; }
    .join_area { padding: 24px 15px 50px; }
    .join_box { padding: 28px 24px; }
    .join_title { font-size: 26px; }
}
@media (max-width: 480px) {
    .join_area { padding: 18px 12px 40px; }
    .join_box { padding: 24px 18px; }
    .select_row { grid-template-columns: 1fr; gap: 0; }
    .username_group { gap: 7px; }
    .check_button { width: 90px; font-size: 13px; }
    .email_group { gap: 5px; }
    .email_group select { width: 136px; padding: 0 7px; font-size: 13px; }
    .button_group { gap: 10px; }
    .join_button, .reset_button { font-size: 15px; }
}

