/* =========================================
    V0 Style Auth Pages - Clean & Modern
   ========================================= */

/* 전체 인증 페이지 스타일 */
.auth-page {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   background: #fafafa;
   min-height: calc(100vh - 80px);
   display: flex;
   align-items: flex-start;
   justify-content: center;
   padding: 3rem 1rem 2rem 1rem;
   margin-top: 80px;
}

/* 인증 컨테이너 */
.auth-container {
   width: 100%;
   max-width: 320px;
   margin: 0 auto;
}

/* 인증 카드 */
.auth-card {
   background: #ffffff;
   border-radius: 12px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
   border: 1px solid #e5e7eb;
   padding: 2rem;
   width: 100%;
}

/* 헤더 영역 */
.auth-header {
   text-align: center;
   margin-bottom: 2rem;
}

.auth-title {
   font-size: 1.875rem;
   font-weight: 700;
   color: #111827;
   margin-bottom: 0.5rem;
   line-height: 1.25;
}

.auth-subtitle {
   font-size: 0.875rem;
   color: #6b7280;
   margin: 0;
   line-height: 1.5;
}

/* 폼 필드 스타일 */
.auth-field.field {
   margin-bottom: 1.25rem;
}

.auth-field .label {
   display: block;
   font-size: 0.875rem;
   font-weight: 500;
   color: #374151;
   margin-bottom: 0.5rem;
   line-height: 1.25;
}

.auth-field .input.input {
   width: 100%;
   padding: 0.75rem;
   border: 1px solid #d1d5db;
   border-radius: 8px;
   font-size: 0.875rem;
   transition: all 0.15s ease;
   background: #ffffff;
   color: #111827;
   outline: none;
   height: auto;
   line-height: 1.5;
}

.auth-field .input.input:focus,
.auth-field .input.input.is-focused {
   border-color: #3b82f6;
   box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
   outline: none;
}

.auth-field .input.input::placeholder {
   color: #9ca3af;
   font-size: 0.875rem;
}

.auth-field .input.input:hover {
   border-color: #9ca3af;
}

/* 아이콘이 있는 인풋 */
.auth-field .control.has-icons-left .input {
   padding-left: 2.5rem;
}

.auth-field .control.has-icons-left .icon.is-left {
   color: #9ca3af;
   left: 0.75rem;
   font-size: 0.875rem;
   pointer-events: none;
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 4;
}

.auth-field .control.has-icons-left .input:focus~.icon.is-left {
   color: #3b82f6;
}

/* 체크박스 */
.auth-checkbox-field.field {
   margin: 1rem 0;
}

.auth-checkbox.checkbox {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.875rem;
   color: #374151;
   cursor: pointer;
}

.auth-checkbox.checkbox input[type="checkbox"] {
   accent-color: #3b82f6;
   width: 1rem;
   height: 1rem;
   border-radius: 4px;
}

/* 메인 버튼 */
.auth-button.button {
   width: 100%;
   background: #3b82f6;
   border: none;
   color: #ffffff;
   padding: 0.75rem 1rem;
   border-radius: 8px;
   font-size: 0.875rem;
   font-weight: 600;
   transition: all 0.15s ease;
   margin-bottom: 1rem;
   height: auto;
   min-height: 2.75rem;
   cursor: pointer;
   outline: none;
   display: flex;
   align-items: center;
   justify-content: center;
}

.auth-button.button:hover,
.auth-button.button.is-hovered {
   background: #2563eb;
   transform: translateY(-1px);
}

.auth-button.button:active {
   transform: translateY(0);
}

.auth-button.button:disabled,
.auth-button.button.is-loading {
   background: #9ca3af;
   cursor: not-allowed;
   transform: none;
}

/* 소셜 로그인 버튼 */
.auth-social-button.button {
   width: 100%;
   background: #ffffff;
   border: 1px solid #d1d5db;
   color: #374151;
   padding: 0.75rem 1rem;
   border-radius: 8px;
   font-size: 0.875rem;
   font-weight: 500;
   transition: all 0.15s ease;
   margin-bottom: 1rem;
   height: auto;
   min-height: 2.75rem;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
}

.auth-social-button.button:hover {
   background: #f9fafb;
   border-color: #9ca3af;
}

.auth-social-button.button .icon {
   color: #ea4335;
}

/* 구분선 */
.auth-divider {
   text-align: center;
   position: relative;
   margin: 1.5rem 0;
   color: #6b7280;
   font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
   content: '';
   position: absolute;
   top: 50%;
   width: 45%;
   height: 1px;
   background: #e5e7eb;
}

.auth-divider::before {
   left: 0;
}

.auth-divider::after {
   right: 0;
}

/* 에러 메시지 */
.auth-message.message.is-danger {
   background: #fef2f2;
   border: 1px solid #fecaca;
   border-radius: 8px;
   margin-bottom: 1rem;
}

.auth-message.message.is-danger .message-body {
   color: #dc2626;
   font-size: 0.875rem;
   padding: 0.75rem;
   background: none;
   border: none;
}

/* 푸터 */
.auth-footer {
   text-align: center;
   margin-top: 1.5rem;
   padding-top: 1rem;
   border-top: 1px solid #e5e7eb;
}

.auth-footer p {
   color: #6b7280;
   font-size: 0.875rem;
   margin: 0;
   line-height: 1.5;
}

.auth-footer a {
   color: #3b82f6;
   font-weight: 500;
   text-decoration: none;
   transition: color 0.15s ease;
}

.auth-footer a:hover {
   color: #2563eb;
   text-decoration: underline;
}

/* 도움말 텍스트 */
.auth-help.help {
   font-size: 0.75rem;
   margin-top: 0.25rem;
   color: #dc2626;
   line-height: 1.25;
}

.auth-help.help.is-danger {
   color: #dc2626;
}

.auth-help.help.is-success {
   color: #059669;
}

/* 반응형 디자인 */
@media screen and (max-width: 480px) {
   .auth-page {
      padding: 2rem 0.5rem 1rem 0.5rem;
      margin-top: 70px;
   }

   .auth-container {
      max-width: 300px;
   }

   .auth-card {
      padding: 1.5rem;
   }

   .auth-title {
      font-size: 1.5rem;
   }

   .auth-subtitle {
      font-size: 0.8rem;
   }
}

@media screen and (max-width: 320px) {
   .auth-container {
      max-width: 280px;
   }

   .auth-card {
      padding: 1.25rem;
   }
}