/* ========================================
   AUTH PAGES - LOGIN & REGISTER
   Modern, Beautiful Design
   ======================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #ffeaa7 100%);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
  background-size: 60px 60px;
  animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.auth-container {
  max-width: 450px;
  width: 100%;
  margin: 20px;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  font-size: 4rem;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

.auth-title {
  font-family: "Fredoka One", cursive;
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 0px rgba(255, 234, 167, 0.3);
}

.auth-subtitle {
  color: var(--light-text);
  font-size: 1rem;
  margin: 0;
}

/* Alert Messages */
.alert {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.alert-success {
  background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
  color: white;
}

.alert-info {
  background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
  color: white;
}

/* Form Groups */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: "Nunito", sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 118, 117, 0.1);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #b0b0b0;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 42px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--light-text);
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn-block {
  width: 100%;
  display: block;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-primary.btn-block {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 118, 117, 0.4);
}

.btn-primary.btn-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 118, 117, 0.5);
}

.btn-primary.btn-block:active {
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  background: white;
  padding: 0 15px;
  color: var(--light-text);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Google Button */
.google-btn {
  background: white;
  color: #444;
  border: 2px solid #ddd;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 14px 20px !important;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  box-sizing: border-box;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #4285f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
  color: #4285f4;
}

.google-btn::before {
  content: '🔐';
  font-size: 1.3rem;
}

/* Footer Links */
.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.auth-footer p {
  color: var(--light-text);
  margin: 0;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Back to Home Link */
.back-home {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.back-home a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-home a:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-home a::before {
  content: '←';
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: 40px 30px;
    margin: 15px;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .auth-logo {
    font-size: 3rem;
  }

  .back-home {
    top: 15px;
    left: 15px;
  }
}