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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: #334155;
  line-height: 1.6;
}

.container {
  max-width: 500px;
  margin: 60px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

h1, h2 {
  text-align: center;
  color: #1e293b;
  margin-bottom: 30px;
  font-weight: 600;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #2563eb;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #1e40af;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  flex: 1;
  min-width: 0;
}

input, select, button {
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}

input:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input::placeholder {
  color: #94a3b8;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  margin-top: 10px;
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

button:active {
  transform: translateY(0);
}

p {
  text-align: center;
  margin: 20px 0;
  color: #64748b;
}

a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.error {
  color: #dc2626;
  text-align: center;
  background: #fef2f2;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
  margin: 15px 0;
  font-weight: 500;
}

.success {
  color: #059669;
  text-align: center;
  background: #f0fdf4;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #059669;
  margin: 15px 0;
  font-weight: 500;
}

hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 25px 0;
}

/* Header and Footer Styling */
header, footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
}

header h3 {
  margin: 0;
  font-weight: 600;
  color: #1e40af;
  font-size: 1.5em;
}

footer p {
  margin: 0;
  font-weight: 400;
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 20px;
    padding: 30px 25px;
    max-width: none;
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  input, select, button {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* Loading animation for buttons */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Style for select dropdown */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

/* Password strength indicator */
#passwordHelp {
  font-size: 14px;
  margin-top: 10px;
}

/* Navigation links styling */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.nav-links a {
  padding: 12px 24px;
  border-radius: 8px;
  background: #2563eb;
  border: 2px solid #2563eb;
  color: white;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-links a:last-child {
  background: transparent;
  color: #2563eb;
}

.nav-links a:last-child:hover {
  background: #2563eb;
  color: white;
}
