/* Login Page - Modern Sleek Design */

/* ===== PC DESIGN (Desktop & Tablet) ===== */
.auth-main {
  min-height: 100vh;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

/* Auth Wrapper */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 4rem);
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.auth-container {
  width: 60%;
  max-width: 500px;
  position: relative;
}

/* Auth Card - PC Design */
.auth-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 2rem 2rem;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* PC Card Top Border */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981, #8b5cf6);
  background-size: 200% 100%;
  animation: gradientFlow 3s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Auth Header - PC */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.auth-icon i {
  font-size: 2.2rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0;
}

/* Auth Form - PC */
.auth-form {
  margin-top: 2rem;
}

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

.form-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Input Groups - PC */
.input-group {
  position: relative;
  display: flex;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.input-group:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.input-group:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.input-group-text {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  font-size: 1rem;
}

.form-control {
  border: none;
  border-radius: 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: transparent;
  color: #ffffff;
  flex: 1;
  font-weight: 400;
}

.form-control:focus {
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* Password Toggle Button - PC */
.btn-outline-secondary {
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  font-size: 1rem;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

/* Form Check - PC */
.form-check {
  margin-bottom: 2rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-check-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Auth Button - PC */
.auth-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  border: none;
  color: #ffffff;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.auth-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

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

/* Auth Footer - PC */
.auth-footer {
  text-align: center;
}

.auth-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.auth-link {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.auth-link:hover {
  color: #06b6d4;
  text-decoration: none;
}

.auth-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

.auth-link:hover::after {
  width: 100%;
}

.forgot-link {
  color: #8b5cf6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.forgot-link:hover {
  color: #06b6d4;
  text-decoration: none;
}

.forgot-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

.forgot-link:hover::after {
  width: 100%;
}

/* ===== MOBILE DESIGN (768px and below) ===== */
@media (max-width: 768px) {
  .auth-main {
    background: #0f172a;
    padding-top: 0;
  }

  .auth-main::before {
    display: none;
  }

  .auth-wrapper {
    min-height: 100vh;
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .auth-container {
    width: 100%;
    max-width: none;
  }

  /* Mobile Card - Glass Design */
  .auth-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    margin: 0;
    animation: slideInUp 0.6s ease-out;
  }

  /* REMOVE TOP BORDER ON MOBILE */
  .auth-card::before {
    display: none;
  }

  /* Mobile Header */
  .auth-header {
    margin-bottom: 2rem;
  }

  .auth-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  }

  .auth-icon i {
    font-size: 1.8rem;
  }

  .auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .auth-subtitle {
    font-size: 1rem;
  }

  /* Mobile Form */
  .auth-form {
    margin-top: 1.5rem;
  }

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

  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  /* Mobile Input Groups */
  .input-group {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .input-group-text {
    padding: 0.875rem 1rem;
    min-width: 50px;
    font-size: 0.9rem;
  }

  .form-control {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .btn-outline-secondary {
    padding: 0.875rem 1rem;
    min-width: 50px;
    font-size: 0.9rem;
  }

  /* Mobile Form Check */
  .form-check {
    margin-bottom: 1.5rem;
  }

  .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
  }

  .form-check-label {
    font-size: 0.85rem;
  }

  /* Mobile Button */
  .auth-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
  }

  .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  }

  /* Mobile Footer */
  .auth-footer p {
    font-size: 0.9rem;
  }
}

/* ===== SMALL MOBILE DESIGN (576px and below) ===== */
@media (max-width: 576px) {
  .auth-wrapper {
    padding: 0.5rem;
    padding-top: 1rem;
  }

  .auth-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .auth-icon {
    width: 60px;
    height: 60px;
  }

  .auth-icon i {
    font-size: 1.5rem;
  }

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

  .auth-subtitle {
    font-size: 0.9rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .input-group-text {
    padding: 0.75rem 0.875rem;
    min-width: 45px;
    font-size: 0.85rem;
  }

  .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  .btn-outline-secondary {
    padding: 0.75rem 0.875rem;
    min-width: 45px;
    font-size: 0.85rem;
  }

  .form-check-input {
    width: 1rem;
    height: 1rem;
  }

  .form-check-label {
    font-size: 0.8rem;
  }

  .auth-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .auth-footer p {
    font-size: 0.85rem;
  }
}

/* ===== LOADING SPINNER ===== */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner-container {
  text-align: center;
  color: #ffffff;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
