:root {
     --policy-primary: #3C8D99;  /* Changed from #10B981 to #3C8D99 */
     --policy-light: #E6F4F6;    /* Lighter version of primary */
     --policy-dark: #2A656E;     /* Darker version of primary */
     --policy-medium: #6FCCB4;   /* Using the secondary color */
     --warning-color: #EF4444;
     --warning-light: #FEF2F2;
     --accent-color: #FFB347;    /* Added accent color */
     --text-dark: #111827;
     --text-medium: #374151;
     --text-light: #6B7280;
     --bg-light: #F9FAFB;
     --border-color: #E5E7EB;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
     font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 }

 body {
     background-color: var(--bg-light);
     color: var(--text-dark);
     line-height: 1.6;
     display: flex;
     flex-direction: column;
     min-height: 100vh;
 }

 .container {
     width: 100%;
     max-width: 480px;
     margin: 0 auto;
     padding: 20px;
     flex: 1;
 }

 .header {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 30px;
     border-bottom: 1px solid var(--border-color);
     margin-bottom: 24px;
     background-color: white;
 }

 .back-button {
     position: absolute;
     left: 16px;
     background: none;
     border: none;
     display: flex;
     align-items: center;
     color: var(--text-medium);
     cursor: pointer;
     font-size: 16px;
 }

 .header-title {
     font-size: 18px;
     font-weight: 700;
     display:none;
     color: var(--policy-primary); /* Added color to header title */
 }

 .title-area {
     text-align: center;
     margin-bottom: 32px;
 }

 h1 {
     color: var(--policy-primary); /* Changed color to primary */
     font-size: 24px;
     margin-bottom: 12px;
 }

 .form-description {
     color: var(--text-medium);
     font-size: 15px;
 }

 .form-group {
     margin-bottom: 24px;
 }

 .form-group label {
     display: block;
     margin-bottom: 8px;
     font-weight: 500;
     color: var(--text-medium);
     font-size: 15px;
 }

 .form-control {
     width: 100%;
     padding: 14px 16px;
     border: 1px solid var(--border-color);
     border-radius: 8px;
     font-size: 16px;
     color: var(--text-dark);
     transition: all 0.3s;
     background-color: white;
 }

 .form-control:focus {
     outline: none;
     border-color: var(--policy-medium);
     box-shadow: 0 0 0 3px rgba(60, 141, 153, 0.1); /* Updated to match primary color */
 }

 .password-wrapper {
     position: relative;
 }

 .password-toggle {
     position: absolute;
     right: 16px;
     top: 50%;
     transform: translateY(-50%);
     background: none;
     border: none;
     cursor: pointer;
     color: var(--text-light);
 }

 .verification-code {
     display: flex;
     gap: 8px;
 }

 .verification-code .digit {
     flex: 1;
     text-align: center;
     font-size: 20px;
     padding: 12px 0;
     border-radius: 8px;
     border: 1px solid var(--border-color);
     background-color: white;
 }

 .error-message {
     color: var(--warning-color);
     font-size: 14px;
     margin-top: 8px;
     display: none;
 }

 .btn {
     display: block;
     width: 100%;
     padding: 16px;
     border: none;
     border-radius: 8px;
     font-size: 16px;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s;
     text-align: center;
 }

 .btn-primary {
     background-color: var(--policy-primary);
     color: white;
 }

 .btn-primary:hover, .btn-primary:focus {
     background-color: var(--policy-dark);
 }

 .btn-outline {
     background-color: white;
     border: 1px solid var(--border-color);
     color: var(--policy-primary); /* Changed to primary color */
     margin-top: 12px;
 }

 .btn-outline:hover, .btn-outline:focus {
     background-color: var(--policy-light);
     color: var(--policy-dark);
     border-color: var(--policy-primary);
 }

 .timer {
     display: inline-block;
     color: var(--warning-color);
     font-weight: 500;
     margin-left: 8px;
 }

 .resend-button {
     background: none;
     border: none;
     color: var(--policy-primary);
     font-weight: 500;
     cursor: pointer;
     margin-left: auto;
     font-size: 14px;
 }

 .verification-header {
     display: flex;
     align-items: center;
     margin-bottom: 12px;
 }

 .password-strength {
     height: 4px;
     width: 100%;
     background-color: var(--border-color);
     margin-top: 8px;
     border-radius: 2px;
     overflow: hidden;
 }

 .password-strength-bar {
     height: 100%;
     width: 0;
     transition: width 0.3s, background-color 0.3s;
 }

 .password-strength-text {
     font-size: 13px;
     margin-top: 4px;
     text-align: right;
 }

 /* 페이지 전환 관련 */
 .page {
     display: none;
 }

 .page.active {
     display: block;
 }

 /* 완료 페이지 스타일 */
 .result-page {
     text-align: center;
     padding: 24px 0;
 }

 .result-icon {
     width: 80px;
     height: 80px;
     margin: 0 auto 24px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     background-color: var(--policy-light);
 }

 .result-icon svg {
     width: 40px;
     height: 40px;
     color: var(--policy-primary);
 }

 .result-title {
     font-size: 22px;
     font-weight: 700;
     margin-bottom: 12px;
     color: var(--policy-primary); /* Changed to primary color */
 }

 .result-message {
     color: var(--text-medium);
     margin-bottom: 36px;
     font-size: 15px;
 }

 .button-group {
     display: flex;
     flex-direction: column;
     gap: 12px;
     margin-top: 32px;
 }

 /* 로딩 애니메이션 */
 .loading {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(255, 255, 255, 0.8);
     z-index: 1000;
     align-items: center;
     justify-content: center;
     display: none;
 }

 .loading.active {
     display: flex !important;
 }

 .loading-spinner {
     width: 48px;
     height: 48px;
     border: 4px solid var(--policy-light);
     border-top: 4px solid var(--policy-primary);
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 @keyframes spin {
     0% { transform: rotate(0deg); }
     100% { transform: rotate(360deg); }
 }

 /* 액센트 요소 - 강조가 필요한 곳에 사용 */
 .accent-element {
     color: var(--accent-color);
     font-weight: 500;
 }

 /* 모바일 최적화 */
 @media (max-width: 480px) {
     .container {
         padding: 16px;
     }

     .form-group {
         margin-bottom: 20px;
     }

     .btn {
         padding: 14px;
     }
       .header-title {
	    font-size: 18px;
	    font-weight: 700;
	    color: var(--primary);
	    display:block;
	}
	.header {
	 padding: 16px 0;
	}
 }
 
 

  /* 모바일 디바이스 테두리 */
  .device-wrapper {
    width: 390px; /* 고정 너비 */
    margin: 20px auto;
    border: 12px solid #111;
    border-radius: 36px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    height: 800px;
    overflow: hidden;
    position: relative;
    background-color: white;
  }
  
  /* 모바일 디바이스 상단 노치 */
  .device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background-color: #111;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 1000;
  }
  
  .device-screen {
    height: 100%;
    overflow-y: auto;
    position: relative;
  }
  
  /* 모바일 기기에서는 테두리 제거 (768px 이하의 화면) */
  @media (max-width: 768px) {
    html, body {
      background-color: #f5f5f5;
      display: block;
    }
    
    .device-wrapper {
      margin: 0;
      border: none;
      border-radius: 0;
      box-shadow: none;
      width: 100%;
      max-width: none;
      height: 100vh;
    }
    
    .device-notch {
      display: none;
    }
    
	.header-title {
	    font-size: 18px;
	    font-weight: 700;
	    color: var(--policy-primary);
	    display:block;
	}
	.header {
	 padding: 16px 0;
	}
  }