/* ==========================================================================
   Modern Premium Login Page Styles
   Theme: Glassmorphic Floating Card + Mesh Gradient Background
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --purple: #8b5cf6;
  --blue: #2563eb;

  --gradient-main: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  --gradient-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

body.login-page-body {
  font-family: var(--font-primary);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f172a;
  position: relative;
  overflow-x: hidden;
  padding: 30px 15px;
}

/* Animated Mesh Gradient Spheres Background */
.login-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: loginOrbFloat 20s ease-in-out infinite alternate;
}

.login-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.6) 0%, rgba(139, 92, 246, 0.2) 70%);
  top: -120px;
  left: -100px;
}

.login-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, rgba(6, 182, 212, 0.2) 70%);
  bottom: -120px;
  right: -100px;
  animation-delay: -6s;
}

.login-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(139, 92, 246, 0.15) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -12s;
}

@keyframes loginOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

/* Centered Glassmorphism Login Card */
.login-card-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 450px;
  margin: auto;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 44px 38px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 40px rgba(99, 102, 241, 0.15);
  animation: cardEntrance 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logo & Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

.login-logo:hover {
  transform: scale(1.08) rotate(5deg);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

/* Input Fields with Icons */
.form-group-custom {
  margin-bottom: 20px;
  position: relative;
}

.input-label-custom {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

.input-modern-login {
  width: 100%;
  padding: 14px 48px 14px 48px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 0.95rem;
  color: #0f172a;
  transition: all 0.3s ease;
}

.input-modern-login:focus {
  background: #ffffff;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-modern-login:focus + .input-icon,
.input-icon-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.password-toggle-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.25s ease;
}

.password-toggle-btn:hover {
  color: #475569;
}

/* Controls (Remember & Forgot) */
.login-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.custom-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #475569;
}

.custom-checkbox-wrap input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Buttons */
.btn-login-submit {
  width: 100%;
  padding: 15px;
  background: var(--gradient-main);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--gradient-glow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
  color: #ffffff;
}

.btn-login-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  margin: 26px 0;
  color: #94a3b8;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.login-divider span {
  padding: 0 14px;
}

/* Google Sign-in Button */
.btn-google-login {
  width: 100%;
  padding: 13px;
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-google-login:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* Footer Link */
.login-card-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: #64748b;
}

.register-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.register-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Feedback Banner */
.alert-feedback {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-feedback-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert-feedback-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
    border-radius: 22px;
  }
}
