/* Authentication Pages Styling */

.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #f8f9fa;
  margin: -2rem -1rem 0 -1rem;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  width: 100%;
  max-width: 450px;
  animation: slideUp 0.4s ease-out;
}

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

.auth-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.auth-logo {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.auth-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.auth-header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.auth-body {
  padding: 2rem;
}

.auth-body .form-group {
  margin-bottom: 1.5rem;
}

.auth-body .form-check {
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.auth-actions {
  margin-top: 2rem;
}

.btn-block {
  width: 100%;
  padding: 0.875rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Telegram button */
.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-telegram::before {
  content: "✈️";
  font-size: 1.2rem;
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.5);
  background: linear-gradient(135deg, #0099e6 0%, #0077aa 100%);
}

.btn-telegram:active {
  transform: translateY(0);
}

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

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: white;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-telegram {
  margin-bottom: 1rem;
}

.auth-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.auth-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: all 0.2s ease;
}

.auth-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
    margin: -2rem -1rem 0 -1rem;
  }

  .auth-card {
    border-radius: 12px;
  }

  .auth-header {
    padding: 2rem 1.5rem 1.5rem;
  }

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

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-body {
    padding: 1.5rem;
  }
}

/* Flash messages in auth pages */
.auth-container + main > div[style*="background: #d4edda"],
.auth-container + main > div[style*="background: #f8d7da"] {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: auto;
  max-width: 400px;
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}