* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #0a1a27;
  color: #fff;
  min-height: 100vh;
}

/* Screen Base */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
}

.screen.active {
  display: flex;
}

/* Screen Content (for splash/success) */
.screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

/* Form Container */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Logo */
.logo {
  height: 64px;
  width: auto;
  min-width: 260px;
  margin-bottom: 40px;
}

/* Spinner */
.spinner-container {
  margin-top: 32px;
}

.spinner {
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.spinner-bg {
  fill: none;
  stroke: #FAA225;
  stroke-width: 3;
  opacity: 0.2;
}

.spinner-path {
  fill: #FAA225;
  opacity: 0.9;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Welcome Text */
.welcome-text {
  margin-top: 40px;
  color: #6b7280;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  background-color: #0a1a27;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loader-overlay.active {
  display: flex;
}

/* Auth Form */
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Field Group */
.field-group {
  display: flex;
  flex-direction: column;
}

.field-label {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #4b5563;
  color: #fff;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.field-input::placeholder {
  color: #6b7280;
}

.field-input:focus {
  border-bottom-color: #FAA225;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #6b7280;
  background: transparent;
  accent-color: #FAA225;
  cursor: pointer;
}

.checkbox-label {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* Forgot Link */
.forgot-link {
  text-align: center;
  margin-top: -8px;
}

.forgot-link a {
  color: #FAA225;
  text-decoration: none;
  font-size: 14px;
}

.forgot-link a:hover {
  text-decoration: underline;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  background-color: #FAA225;
  color: #fff;
  font-weight: 700;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #E6931B;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: #374151;
  margin: 8px 0;
}

/* Switch Text */
.switch-text {
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.link-btn {
  background: transparent;
  border: none;
  color: #FAA225;
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
}

.link-btn:hover {
  text-decoration: underline;
}

/* OTP Screen */
.otp-message {
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 14px;
}

.error-message {
  color: #f87171;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.error-message.hidden {
  display: none;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.otp-input {
  width: 64px;
  height: 64px;
  background: transparent;
  border: 2px solid #4b5563;
  border-radius: 8px;
  color: #fff;
  font-size: 24px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.otp-input:focus {
  border-color: #FAA225;
}

.otp-input.error {
  border-color: #f87171;
}

.otp-input.active {
  border-color: #FAA225;
}

/* Resend Section */
.resend-section {
  text-align: center;
}

.resend-text {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.resend-text span {
  color: #fff;
}

.btn-resend {
  background-color: #FAA225;
  color: #fff;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.btn-resend:hover:not(:disabled) {
  background-color: #E6931B;
}

.btn-resend:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Success Screen */
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-text {
  color: #9ca3af;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
  .otp-input {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  .otp-inputs {
    gap: 12px;
  }
  
  .logo {
    height: 48px;
    min-width: 200px;
  }
}
