:root {
    --primary-color: #00A3FF;
    --bg-color: #F5F7FA;
    --text-color: #333;
    --border-color: #E0E0E0;
}

html { overflow-y: scroll; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
}

.auth-container {
    background: white;
    width: 600px; /* 회원가입 폼 너비 */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.auth-container.small {
    width: 400px; /* 로그인 폼은 좀 더 작게 */
}

h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover { filter: brightness(90%); }

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border-color);
    color: #555;
    margin-right: 10px;
    width: auto;
    padding: 10px 20px;
}

/* 단계별 화면 제어 */
.step-section {
    display: none; /* 기본적으로 숨김 */
}
.step-section.active {
    display: block; /* 활성화된 단계만 보임 */
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.error-msg {
    color: #FF4D4F;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.iti { width: 100%; }

/* verification-input-group 스타일 추가 */
/* 1. 전체 컨테이너: 내부 요소를 중앙 정렬 */
.verification-input-group {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

/* 2. 입력칸을 감싸는 래퍼: 기준점 역할 */
.input-wrapper {
    position: relative; /* 타이머의 기준점 */
    display: inline-block;
}

/* 3. 입력칸 스타일 (기존 유지) */
#verificationCode {
    width: 200px;
    text-align: center;
    letter-spacing: 5px;
    font-size: 20px;
    padding: 10px;
}

/* 4. 타이머: 절대 위치로 우측에 배치 (레이아웃 영향 X) */
#timerDisplay {
    position: absolute;
    left: 100%;             /* 입력칸의 오른쪽 끝에 위치 */
    top: 50%;               /* 수직 중앙 */
    transform: translateY(-50%); /* 수직 중앙 보정 */
    margin-left: 15px;      /* 입력칸과의 간격 */

    font-size: 16px;
    font-weight: bold;
    color: #666;
    width: 50px;            /* 너비 고정 */
    white-space: nowrap;    /* 줄바꿈 방지 */
}

/* 타이머 만료 시 색상 */
#timerDisplay.expired {
    color: #FF4D4F;
}

/* 슬라이드 다운/업 애니메이션을 위한 스타일 */
#australiaFields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    /* 초기 상태는 보이지 않게 설정 */
    display: block; /* 기존 display: none 대신 block으로 설정하되, 높이를 0으로 만듭니다. */
}

/* 필드가 보여질 때 적용할 클래스 */
#australiaFields.show {
    max-height: 1000px; /* 충분히 큰 값으로 설정하여 내용이 모두 보이도록 합니다. */
    opacity: 1;
}

/* business industry 검색 */

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.autocomplete-suggestions li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
}

.autocomplete-suggestions li:last-child {
    border-bottom: none;
}

.autocomplete-suggestions li:hover {
    background-color: #F5F7FA;
    color: var(--primary-color);
}