/* Auth Page Styles (Login/Register) */

.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-blue) 0%, var(--soft-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 1200px;
}

/* Auth Card */
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(var(--primary-blue-rgb), 0.2);
  transition: background 0.3s ease;
}

/* Left Side - Branding */
.auth-branding {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-branding-content {
  position: relative;
  z-index: 1;
}

.auth-logo {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.auth-logo i {
  font-size: 3.5rem;
  color: white;
}

.auth-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-info h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.feature-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Right Side - Form Section */
.auth-form-section {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Back Link */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.auth-back-link:hover {
  color: var(--primary-blue);
}

/* Form Header */
.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-title {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-form-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon .form-control {
  padding: 0.875rem 3rem 0.875rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-blue);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.input-with-icon .form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(var(--primary-blue-rgb), 0.1);
  background: var(--card-bg);
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-blue);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-check-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

.forgot-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--dark-blue);
}

/* Auth Button */
.btn-auth {
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-blue-rgb), 0.3);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0 1rem;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: var(--bg-blue);
  color: var(--text-primary);
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-vk:hover {
  background: #0077FF;
  border-color: #0077FF;
  color: white;
}

.btn-telegram:hover {
  background: #229ED9;
  border-color: #229ED9;
  color: white;
}

.btn-social i {
  font-size: 1.2rem;
}

/* Register Link */
.auth-register-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-register-link a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-register-link a:hover {
  color: var(--dark-blue);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.auth-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.auth-footer-links a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-footer-links a:hover {
  color: var(--primary-blue) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .auth-branding {
    padding: 2rem;
  }

  .auth-logo {
    width: 80px;
    height: 80px;
  }

  .auth-logo i {
    font-size: 2.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-features {
    display: none;
  }

  .auth-form-section {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .auth-body {
    padding: 1rem;
  }

  .auth-card {
    border-radius: 16px;
  }

  .auth-form-section {
    padding: 1.5rem;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-login {
    flex-direction: column;
  }
}

/* 2026 auth refresh */
.auth-logo-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
