/* ResponderMap Web - Matching Mobile App Styling */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Form Container */
.form-container {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.app-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.logo-text {
  width: 200px;
  height: 40px;
  object-fit: contain;
}

/* Typography */
.title {
  font-size: 32px;
  font-weight: bold;
  color: #2196F3;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 16px;
  color: #666;
  text-align: center;
  margin-bottom: 25px;
}

/* Form Elements */
.form-group {
  margin-bottom: 15px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input::placeholder {
  color: #999;
}

/* Password Toggle */
.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  opacity: 0.5;
  user-select: none;
}

.eye-icon.active {
  opacity: 1;
}

/* Help Text */
.help-text {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}

/* Radio Group (Account Type) */
.radio-group {
  margin-bottom: 20px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.radio-option:hover {
  background-color: #eef6fc;
}

.radio-option.selected {
  background-color: #e3f2fd;
  border: 1px solid #2196F3;
}

.radio-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #2196F3;
  margin-right: 12px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-selected {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2196F3;
  display: none;
}

.radio-option.selected .radio-selected {
  display: block;
}

.radio-text-container {
  flex: 1;
}

.radio-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.radio-description {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* Buttons */
.button {
  width: 100%;
  background-color: #2196F3;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  margin-top: 10px;
}

.button:hover {
  background-color: #1976D2;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  background-color: #00aeef;
}

.button.secondary:hover {
  background-color: #0095cc;
}

/* Link Button */
.link-button {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #2196F3;
  font-size: 14px;
  text-decoration: none;
}

.link-button:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

/* Success Message */
.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

/* Hidden Elements */
.hidden {
  display: none !important;
}

/* Pricing Info Box */
.pricing-box {
  background-color: #e3f2fd;
  border: 1px solid #2196F3;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.pricing-title {
  font-size: 16px;
  font-weight: 600;
  color: #1976D2;
  margin-bottom: 8px;
}

.pricing-details {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.pricing-details strong {
  color: #1976D2;
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.feature-list li {
  padding: 6px 0;
  padding-left: 25px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2196F3;
  font-weight: bold;
}

/* Tier Cards (for Municipality) */
.tier-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tier-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.tier-card:hover {
  border-color: #2196F3;
  background-color: #f5f9fc;
}

.tier-card.selected {
  border-color: #2196F3;
  background-color: #e3f2fd;
}

.tier-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.tier-price {
  font-size: 24px;
  font-weight: bold;
  color: #2196F3;
  margin-bottom: 8px;
}

.tier-price span {
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.tier-description {
  font-size: 13px;
  color: #666;
}

/* Responsive */
@media (max-width: 480px) {
  .form-container {
    padding: 20px;
  }
  
  .title {
    font-size: 26px;
  }
}

/* Success Page Specific */
.success-icon {
  font-size: 64px;
  text-align: center;
  margin-bottom: 20px;
}

.success-title {
  font-size: 28px;
  font-weight: bold;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 15px;
}

.success-text {
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.store-button:hover {
  background-color: #555;
}

.store-button img {
  height: 24px;
}
