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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(150, 15, 22, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Language switcher styles */
.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(150, 15, 22, 0.1);
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.language-switcher img {
  cursor: pointer;
  width: 28px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: border-color 0.3s;
}

.language-switcher img.active {
  border-color: #960f16;
}

.form-container {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  width: 90%;
  max-width: 550px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(150, 15, 22, 0.05);
}

.logo {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1a1a1a;
  letter-spacing: 1px;
}

.logo span {
  background: linear-gradient(135deg, #960f16 0%, #7a0ac7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

form {
  display: flex;
  flex-direction: column;
}

form input,
form select {
  margin-bottom: 5px;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s, box-shadow 0.3s;
  width: 100%;
}

form input:focus,
form select:focus {
  border-color: #960f16;
  outline: none;
  box-shadow: 0 0 0 3px rgba(150, 15, 22, 0.1);
  transform: translateY(-2px);
}

form input:invalid:not(:placeholder-shown),
form select:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

form input:valid:not(:placeholder-shown),
form select:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-bottom: 15px;
  display: block;
  min-height: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

form button {
  background: linear-gradient(135deg, #960f16 0%, #7a0ac7 100%);
  color: white;
  padding: 18px;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(150, 15, 22, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(150, 15, 22, 0.4);
}

form button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

form button:hover::before {
  width: 300px;
  height: 300px;
}

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

form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
