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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #1e293b;
  min-height: 100vh;
}

.auth-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Professional card with modern design */
.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2), 0 0 1px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
}

.auth-header {
  padding: 40px 32px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.auth-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.auth-body {
  padding: 32px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  color: #0f172a;
  font-weight: 500;
}

.form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.invalid-feedback {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 500;
}

.invalid-feedback.show {
  display: block;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 10px;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #3b82f6;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.form-check-label {
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
}

.form-check-label a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.form-check-label a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Professional button styling */
.btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-primary {
  margin-top: 8px;
  margin-bottom: 16px;
}

/* Alert styling */
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
  border-left: 4px solid;
  font-weight: 500;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}

.alert-danger ul {
  margin: 0;
  padding-left: 20px;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #22c55e;
}

/* Password strength meter */
.password-strength-meter {
  margin-top: 10px;
}

.strength-bar {
  width: 100%;
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.strength-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer styling */
.text-center {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #64748b;
}

.text-center a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  margin-left: 4px;
}

.text-center a:hover {
  color: #2563eb;
}

.mt-3 {
  margin-top: 12px;
}

small {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-top: 6px;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .auth-card {
    max-width: 100%;
  }

  .auth-header {
    padding: 32px 24px 16px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .auth-body {
    padding: 24px;
  }

  .btn {
    padding: 11px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .auth-header {
    padding: 28px 20px 12px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-body {
    padding: 20px;
  }

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