/* ================================================
   Auth Pages — Login & Signup
   ================================================ */

.login-section {
  padding: 7rem 0 6rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  min-height: 100vh;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.login-form-container {
  max-width: 400px;
  margin-left: auto;
}

/* ================================================
   Form
   ================================================ */

.login-form-group {
  margin-bottom: 1.25rem;
}

.login-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.login-form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1f2937;
  transition: all 0.2s;
  box-sizing: border-box;
}

.login-form-group input:hover {
  background: white;
}

.login-form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.login-form-group .errorlist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: #dc2626;
  font-size: 0.8rem;
}

.login-error {
  border-radius: 10px;
  background: #fee2e2;
  padding: 12px 16px;
  border: 1px solid #fca5a5;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #991b1b;
}

.login-submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.login-footer p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.login-footer a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  color: #5a6fd8;
}

/* ================================================
   Login — Social Auth & Password Toggle
   ================================================ */

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  margin-bottom: 10px;
}

.social-btn:last-child {
  margin-bottom: 0;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-btn-yandex:hover {
  border-color: #FC3F1D;
  background: #fff8f7;
}

.social-btn-vk:hover {
  border-color: #4c75a3;
  background: #f5f8ff;
}

.social-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.social-btn-text {
  flex: 1;
  text-align: center;
}

.social-btn-arrow {
  color: #d1d5db;
  font-size: 1rem;
  margin-left: auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  font-size: 0.8rem;
  color: #9ca3af;
  white-space: nowrap;
}

.login-password-container {
  position: relative;
}

.login-password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

.forgot-link {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
}

.forgot-link:hover {
  color: #667eea;
}

/* ================================================
   Signup Specific
   ================================================ */

.signup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.signup-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.info-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #1d4ed8;
  margin-bottom: 1.5rem;
}

/* ================================================
   Responsive
   ================================================ */

@media (max-width: 1024px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .login-form-container {
    margin: 0 auto;
    max-width: 500px;
  }

  .social-btn-text {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .login-section {
    padding: 3rem 0 2rem;
  }
}
