/* Auth Styles */
/* Примечание: стили body уже определены в main.css */

* { box-sizing: border-box; }

/* Добавляем flexbox для правильного позиционирования footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-container {
  width: 100%; 
  max-width: 420px; 
  background: rgba(255, 255, 255, 0.02);
  padding: 32px; 
  border-radius: 12px; 
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4rem auto 4rem auto; /* сверху больше отступ */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}
h1 { margin: 0 0 16px; font-size: 22px; text-align: center; }
label { display:block; margin: 12px 0 6px; font-size: 13px; color: #94a3b8; }

.input-group {
  position: relative;
  margin-bottom: 12px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #e5e7eb;
  font-size: 14px;
  z-index: 10;
  line-height: 1;
  pointer-events: none;
}

.input-group input {
  width: 100%; 
  padding: 12px 16px 12px 44px; 
  border: 1px solid #374151; 
  border-radius: 8px; 
  background: #0f0f0f; 
  color: #e5e7eb;
  transition: border-color 0.2s ease;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  border-color: #60a5fa;
}

.input-group input:focus + i {
  color: #e5e7eb;
}

/* Стили для автозаполнения */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0f0f0f inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
  transition: background-color 5000s ease-in-out 0s;
}

.input-group input:-webkit-autofill + i {
  color: #e5e7eb !important;
  z-index: 10 !important;
}
button {
  margin-top: 16px; 
  width: 100%; 
  padding: 12px 16px; 
  border: 1.5px solid #505055; 
  border-radius: 8px; 
  background: #0f0f0f; 
  color: #e5e7eb; 
  font-weight: 600; 
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: scale(1);
}

button:hover {
  background: #3c3c40;
  border-color: #606065;
  transform: scale(1.02);
}

button:active {
  transform: scale(0.98);
  background: #2a2a2e;
}

/* Эффект свечения при наведении */
button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}
.muted { margin-top: 12px; font-size: 13px; color: #94a3b8; text-align: center; }
.muted a { color: #60a5fa; text-decoration: none; }
.error { background: #111111; border:1px solid #ef4444; color: #fca5a5; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.success { background: #111111; border:1px solid #22c55e; color: #86efac; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }


