/* Auth.css - Modern bejelentkezési és regisztrációs oldal stílusok */

/* ===== SIDEBAR HIDING FOR AUTH PAGES ===== */
body.auth-page-body #sidebar,
body.auth-page-body #sidebar-backdrop,
.auth-page-body #sidebar,
.auth-page-body #sidebar-backdrop {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

body.auth-page-body .main-content,
.auth-page-body .main-content {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.auth-page-body .mobile-header,
.auth-page-body .mobile-header {
  display: none !important;
}

body.auth-page-body .pt-4,
.auth-page-body .pt-4 {
  padding-top: 0 !important;
  display: none !important;
}

/* ===== GLOBAL RESET ===== */
.auth-page {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
  margin: 0;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== BACK BUTTON ===== */
.auth-back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.auth-back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateX(-3px);
}

.auth-back-button i {
  font-size: 0.8rem;
}

/* ===== CARD ===== */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

/* ===== FORM ELEMENTS ===== */
.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-form-label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: block;
}

.auth-form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
}

.auth-form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.auth-form-control::placeholder {
  color: #94a3b8;
}

.auth-form-text {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.5rem;
  display: block;
}

.auth-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.auth-form-check-label {
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
  margin: 0;
}

/* ===== BUTTONS ===== */
.auth-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.auth-btn-primary {
  background: var(--gradient-primary-button);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.auth-btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: white;
}

.auth-btn-outline {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #64748b;
}

.auth-btn-outline:hover {
  background: #f8fafc;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.auth-btn-link {
  background: transparent;
  border: none;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-btn-link:hover {
  color: var(--primary-dark);
  transform: translateX(-3px);
}

.auth-btn-google {
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-btn-google:hover {
  background: #f8fafc;
  border-color: #dc2626;
  color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.auth-btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.auth-btn-success:hover {
  background: linear-gradient(135deg, var(--success-color), #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
  color: white;
}

/* ===== DIVIDER ===== */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
}

/* ===== ALERTS ===== */
.auth-alert {
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: none;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease-out;
}

.auth-alert-danger {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

.auth-alert-success {
  background: rgba(5, 150, 105, 0.1);
  color: #065f46;
  border-left: 4px solid var(--success-color);
}

.auth-alert-info {
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
  border-left: 4px solid var(--primary-color);
}

/* ===== LINKS ===== */
.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.auth-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .auth-page {
    padding: 60px 0 40px 0;
  }

  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .auth-card-title {
    font-size: 1.75rem;
  }

  .auth-back-button {
    top: 10px;
    left: 10px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .auth-container {
    padding: 0 0.75rem;
  }

  .auth-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .auth-card-title {
    font-size: 1.5rem;
  }

  .auth-card-subtitle {
    font-size: 0.9rem;
  }

  .auth-form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }

  .auth-btn {
    padding: 0.875rem;
    font-size: 0.95rem;
  }
}

