@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

.auth-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  position: relative;
}

/* Logo section */
.logo-section {
  padding: 20px 40px 10px 40px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.company-logo {
  max-height: 75px;
  object-fit: contain;
}

/* Content section */
.content-section {
  padding: 20px 40px 0 40px;
}

.auth-title {
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #1F1E1F;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 40px;
  margin-right: 18px;
}

/* Audio mode */
.captcha-container .block-audio {
  padding: 20px;
  text-align: center;
  width: 100%;
}

#dl-audio-btn {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 36px;
  height: 34px;
}

#dl-audio-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Loader */
.loader {
  border: 3px solid #f3f4f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Form section */
.form-container {
  margin-bottom: 24px;
}

.control-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.input-container {
  flex: 1;
  position: relative;
}

.input-container input[type="text"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  background: white;
  transition: all 0.2s ease;
  outline: none;
}

.input-container input[type="text"]:focus {
  border-color: var(--primary-color, #4f46e5);
}

.input-container input[type="text"]::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.input-container input[type="text"].input-error {
  border-color: #ef4444;
}

/* Control buttons */
.center-vertical {
  background: white;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.center-vertical:active {
  transform: scale(0.95);
}

/* Submit button */
.word-submit-btn {
  border-radius: 40px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  color: white;
  width: 80px;
  height: 40px;
  text-align: center;
  align-content: center;
}

/* Page counter */
.info-counter {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #92400e;
  text-align: center;
  font-weight: 600;
}

.hide-counter {
  display: none;
}

/* Footer */
.footer-content {
  display: flex;
  padding: 16px 24px;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.footer-logo {
  height: 40px;
  vertical-align: middle;
  margin-left: -20px;
}

.footer-text {
  font-style: normal;
  line-height: normal;
  font-family: 'OpenSans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6B7280;
}

/* Icons */
.icon-typo {
  font-weight: 400;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

.icon-dl {
  font-size: 18px;
  color: inherit;
}

/* Mobile responsive */
@media (max-width: 640px) {
  body {
    padding: 0;
    background: white;
  }

  .auth-container {
    min-height: 100vh;
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
  }

  .logo-section {
    padding: 20px 20px 15px 20px;
  }

  .company-logo {
    max-height: 50px;
  }

  .content-section {
    padding: 15px 20px 30px 20px;
  }

  .auth-title {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .auth-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    margin-right: 0;
    line-height: 1.4;
  }

  .captcha-container {
    padding: 12px;
    margin-bottom: 12px;
  }

  .footer-content {
    padding: 12px 20px;
    font-size: 12px;
  }

  .footer-logo {
    height: 30px;
    margin-left: -15px;
  }
}