/* register.css */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(123,92,255,0.15), rgba(15,15,18,1) 70%);
  padding: 120px 20px 100px; /* Увеличил отступы сверху и снизу */
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.auth-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  animation: fadeInUp 0.6s ease forwards;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.auth-card h1 {
  text-align: center;
  font-size: 28px;
  color: #eaeaff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-subtitle {
  text-align: center;
  color: #b8b8cc;
  margin-bottom: 30px;
  font-size: 15px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}

.form-group input {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
  transition: all 0.25s ease;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #9b83ff;
  box-shadow: 0 0 0 2px rgba(123,92,255,0.2);
  background: rgba(255,255,255,0.08);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-hint {
  color: #8888aa;
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.auth-switch {
  text-align: center;
  margin-top: 25px;
  color: #aaa;
  font-size: 14px;
}

.auth-switch a {
  color: #9b83ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s;
}

.auth-switch a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Валидация */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ff6b6b;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
  border-color: #51cf66;
}

/* Адаптивность */
@media (max-width: 768px) {
  .auth-section {
    padding: 100px 15px 80px;
  }
  
  .auth-card {
    padding: 30px 25px;
    max-width: 400px;
  }
  
  .auth-card h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 80px 10px 60px;
  }
  
  .auth-card {
    padding: 25px 20px;
  }
  
  .auth-card h1 {
    font-size: 22px;
  }
  
  .form-group input {
    padding: 10px 14px;
  }
}

/* Для очень маленьких экранов */
@media (max-height: 700px) {
  .auth-section {
    padding: 80px 20px 60px;
    min-height: auto;
  }
}