/* styles/auth.css */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #1a1a1a;
  color: white;
  overflow-x: hidden;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 100%);
  padding: 0 20px;
  max-width: 100vw;
}

.auth-header {
  display: flex;
  align-items: center;
  padding: 60px 0 40px 0;
  gap: 12px;
}

.blaze-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.blaze-text {
  font-size: 24px;
  font-weight: 600;
  color: white;
}

.auth-title {
  text-align: center;
  margin-bottom: 60px;
}

.title-main {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-sub {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
  height: 52px;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.continue-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.continue-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.continue-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-link {
  text-align: center;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.signup-link {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
}

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

/* OTP Specific Styles */
.otp-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.4;
}

.otp-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 30px;
}

.otp-input {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.otp-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.otp-input.filled {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

.resend-container {
  text-align: center;
  margin: 20px 0;
}

.resend-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
}

.resend-link {
  color: #a855f7;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.resend-link:hover:not(.disabled) {
  text-decoration: underline;
}

.resend-link.disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.timer {
  color: #a855f7;
  font-weight: 600;
}

/* Footer Styles */
.auth-footer {
  margin-top: auto;
  padding: 40px 0;
}

.footer-legal {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 30px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.download-section {
  text-align: center;
  margin-bottom: 40px;
}

.download-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.company-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.company-logo .blaze-logo {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.company-logo .blaze-text {
  font-size: 18px;
  font-weight: 600;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
  text-align: center;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

/* Loading and Error States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.success-message {
  color: #10b981;
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 480px) {
  .auth-container {
    padding: 0 16px;
  }
  
  .title-main,
  .title-sub {
    font-size: 40px;
  }
  
  .otp-input {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .otp-container {
    gap: 8px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-button {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 360px) {
  .title-main,
  .title-sub {
    font-size: 36px;
  }
  
  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0.5;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-container {
  animation: fadeIn 0.5s ease-out;
}

/* Focus management for accessibility */
.form-input:focus,
.otp-input:focus,
.continue-button:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.country-selector-btn:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

