/* 기본 설정 */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* 전체 컨테이너 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* 로고 */
.moaba {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    color: inherit;   /* 부모 요소(헤더)의 기본 색상 유지 */
    text-decoration: none; /* 밑줄 제거 */
}

/* 폼 컨테이너 */
.form-container {
    width: 450px;
    padding: 20px;
    text-align: center;
}

/* 제목 */
.sign-up-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

/* 로그인 링크 */
.login-prompt {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.login-prompt a {
    color: #007BFF;
    text-decoration: none;
}

/* 단계 표시 */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    margin-left: -50px;
    width: 550px;
}

.step {
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;           /* 정원 유지 */
  border-radius: 50%;
  background-color: rgba(51, 51, 51, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;

  /* ↓↓↓ 플렉스 줄바꿈/축소에도 절대 찌그러지지 않게 */
  flex: 0 0 24px;
  min-width: 24px;
  min-height: 24px;
}
.step.active { background-color: #333; }


/* 단계 라벨 */
.step-label {
    font-size: 14px;
    color: rgba(51, 51, 51, 0.5);
}

.step-label.active-label {
    color: #333;
    font-weight: 500;
}

/* 구분선 */
.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(102, 102, 102, 0.25);
}

/* 입력 필드 */
.input-container {
    text-align: left;
    margin-bottom: 20px;
}

.input-container label {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.input-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Next 버튼 기본 비활성화 스타일 */
.next-button {
    width: 100%;
    padding: 12px;
    background-color: #ccc; /* 비활성화 상태 (회색) */
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: not-allowed;
    margin-top: 10px;
    transition: background-color 0.3s ease, cursor 0.3s ease;
}

/* Next 버튼 활성화 스타일 */
.next-button:enabled {
    background-color: #333; /* 활성화 상태 (진한 회색) */
    cursor: pointer;
}


/* 구분선 */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.divider span {
    padding: 0 10px;
    color: #666;
}

/* 구글 로그인 버튼 */
.google-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 25px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.google-signup img {
    width: 20px;
    margin-right: 10px;
}

/* =========================
   반응형 스타일 (max-width: 768px)
========================= */
@media screen and (max-width: 768px) {
    /* 전체 컨테이너의 여백 조정 */
    .container {
        padding: 0 10px;
    }
    
    /* 로고 크기와 여백 조정 */
    .moaba {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    /* 폼 컨테이너: 고정 폭 대신 90% 너비 사용 */
    .form-container {
        width: 90%;
        padding: 15px;
    }
    
    /* 제목 크기 축소 */
    .sign-up-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    /* 로그인 링크 폰트 크기 및 여백 축소 */
    .login-prompt {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* 단계 표시 영역: 고정 폭 및 여백 해제 */
    .step-indicator {
        width: 100%;
        margin-left: 0;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    /* 입력 필드: 폰트 크기 및 패딩 축소 */
    .input-container input {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Next 버튼: 폰트 크기 및 패딩 축소 */
    .next-button {
        padding: 10px;
        font-size: 14px;
        margin-top: 8px;
    }
    
    /* 구글 로그인 버튼: 폰트 크기 및 패딩 축소 */
    .google-signup {
        padding: 10px;
        font-size: 14px;
    }
}
@media screen and (max-width: 768px) {
  /* 단계 영역을 3열 그리드로: 1열=1단계, 2열=2단계, 3열=3단계 */
  .step-indicator {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 6px 12px;            /* row x col */
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
  }

  /* 구분선은 모바일에선 숨김 */
  .step-indicator .divider-line { display: none !important; }

  /* 원형 크기를 약간 키워서 터치/가독성 ↑ */
  .step {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 13px;
    margin: 0 auto;          /* 가운데 정렬 */
  }

  /* 라벨: 줄바꿈 허용 + 중앙 정렬 */
  .step-label {
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  /* ↓↓↓ HTML을 안 바꾸고도 "숫자 위 / 라벨 아래"를 만들기 위한 위치 매핑 */
  .step-indicator .step:nth-of-type(1)       { grid-column: 1; grid-row: 1; }
  .step-indicator .step-label:nth-of-type(1) { grid-column: 1; grid-row: 2; }

  .step-indicator .step:nth-of-type(2)       { grid-column: 2; grid-row: 1; }
  .step-indicator .step-label:nth-of-type(2) { grid-column: 2; grid-row: 2; }

  .step-indicator .step:nth-of-type(3)       { grid-column: 3; grid-row: 1; }
  .step-indicator .step-label:nth-of-type(3) { grid-column: 3; grid-row: 2; }

  /* 폼/입력 요소 가독성 */
  .form-container { width: 92%; padding: 15px; }
  .sign-up-title  { font-size: 20px; }
  .login-prompt   { font-size: 13px; }

  /* iOS 확대 방지: input은 16px 이상 권장 */
  .input-container input {
    padding: 12px;
    font-size: 16px;     /* 기존 13px → 16px */
  }
  .next-button {
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
  }

  .google-signup { padding: 10px; font-size: 14px; }
}
@media screen and (max-width: 360px) {
  .step { width: 26px; height: 26px; flex: 0 0 26px; min-width: 26px; min-height: 26px; }
  .step-label { font-size: 11px; }
}
/* 이메일 입력 래퍼 오른쪽에 여백 추가 */
.input-container {
  padding-right: 12px;          /* 데스크톱 기본 */
}
@media (max-width: 768px) {
  .input-container {
    padding-right: 16px;        /* 모바일에서 좀 더 여유롭게 */
  }
}
