* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.5;
  padding: 16px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Form Container */
.auth-section {
  width: 100%;
  max-width: 393px;
  margin: 20px 0;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 22px;
}

/* Language Display */
.language-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 14px;
  color: #555;
}

.language-option {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #eaeaea;
  cursor: default;
}

.language-option.active {
  background-color: #3498db;
  color: #fff;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  margin-bottom: -12px;
}

input, select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #3498db;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 38px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 1rem;
}

/* Checkbox Styling */
.terms-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  font-size: 14px;
}

.terms-label input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  min-height: 16px;
}

/* Submit Button */
.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

@media (hover: hover) {
  .btn-primary:hover {
    background-color: #2980b9;
  }
  .terms-label a:hover {
    text-decoration: underline;
  }
}

/* Success/Validation Styling */
input:valid, select:valid {
  border-color: #2ecc71;
}

/* Alerts */
.alert {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border-color: #f5c2c7;
}

.alert p {
  margin: 0;
  line-height: 1.4;
}

/* Link */
a {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}

a:hover {
  text-decoration: underline;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.language-toggle .lang-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--light-gray);
  background: none;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-toggle .lang-btn.active {
  background-color: var(--primary-color);
  color: blue;
  border-color: var(--primary-color);
}