/* Deep Space Blue & Slate Lavender Premium Auth Screen */

.auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
  /* Premium multi-dimensional mesh gradient background (no cheap glows/shadows) */
  background: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
    #09090B;
  z-index: 100;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Remove old glowing pseudo-elements */
.auth-screen::before,
.auth-screen::after {
  display: none !important;
}

/* Premium Floating Glass Bubbles */
.auth-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  bottom: -150px;
  /* Beautiful glassmorphic light refraction gradients */
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), rgba(99, 102, 241, 0.02) 60%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatBubble 16s infinite linear;
  pointer-events: none;
  backdrop-filter: blur(1px);
}

/* Organic drifting movements for bubbles */
.bubble:nth-child(1) { left: 8%; width: 90px; height: 90px; animation-duration: 18s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 28%; width: 60px; height: 60px; animation-duration: 14s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 52%; width: 110px; height: 110px; animation-duration: 22s; animation-delay: 5s; }
.bubble:nth-child(4) { left: 74%; width: 50px; height: 50px; animation-duration: 12s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 88%; width: 80px; height: 80px; animation-duration: 16s; animation-delay: 8s; }
.bubble:nth-child(6) { left: 18%; width: 100px; height: 100px; animation-duration: 20s; animation-delay: 9s; }
.bubble:nth-child(7) { left: 42%; width: 70px; height: 70px; animation-duration: 15s; animation-delay: 4s; }
.bubble:nth-child(8) { left: 82%; width: 95px; height: 95px; animation-duration: 19s; animation-delay: 3s; }

@keyframes floatBubble {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-125vh) translateX(60px) rotate(360deg);
    opacity: 0;
  }
}

/* Split Layout Container (Only for Desktop Viewports) */
.auth-split-container {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Left Panel: Presentation Info (Hidden on Mobile/Tablet by default) */
.auth-info-panel {
  display: none !important;
}

/* Right Panel: Form Wrapper */
.auth-form-panel {
  display: block;
  width: 100%;
}

/* Brand Logo Layout (Inside Form) */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.auth-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #818CF8, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Elegant, flat, transparent Auth Card */
.auth-card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: none !important; /* No shadow */
  position: relative;
  z-index: 1;
  animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.auth-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  text-align: center; /* Centered on mobile */
}

.auth-subtitle {
  color: #94A3B8; /* Slate lavender text */
  font-size: 0.875rem;
  margin-bottom: 28px;
  text-align: center; /* Centered on mobile */
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #CBD5E1; /* Light slate label */
  margin-bottom: 8px;
  display: block;
}

.input-icon-wrap {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  background: transparent !important; /* Transparent background */
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important; /* Underline style */
  border-radius: 0 !important; /* No rounded corners */
  color: #FFFFFF !important;
  padding: 12px 16px 12px 38px !important;
  font-size: 0.9375rem !important;
  transition: border-color 0.25s ease !important;
  outline: none !important;
  box-shadow: none !important; /* No glows or shadows */
}

.form-input:focus {
  background: transparent !important;
  border-bottom-color: #6366F1 !important; /* Indigo focus line */
}

.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748B;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.input-icon-right:hover {
  color: #94A3B8;
}

/* Forgot Password Link */
.forgot-link-container {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 4px;
}

.forgot-link-container a {
  color: #94A3B8;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link-container a:hover {
  color: #818CF8;
}

/* Premium Buttons Styling */
.auth-card .btn-primary {
  background: linear-gradient(135deg, #6C63FF 0%, #5A3FD6 100%) !important;
  border: none !important;
  border-radius: 999px !important; /* Capsule style */
  color: #fff !important;
  padding: 14px 24px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  font-family: 'DM Sans', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: none !important; /* No shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #7C4DFF 0%, #6C63FF 100%) !important;
  transform: translateY(-1px);
}

.auth-card .btn-primary:active {
  transform: translateY(0) scale(0.985);
}

/* Google Sign-in Button */
.auth-card .btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  padding: 12px 20px !important;
  border-radius: 999px !important; /* Capsule style */
  font-size: 0.9375rem !important;
  width: 100%;
  box-shadow: none !important;
}

.auth-card .btn-google:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-1px);
}

.auth-card .btn-google:active {
  transform: translateY(0) scale(0.985);
}

/* Divider Styling */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider:not(:empty)::before {
  margin-right: 16px;
}

.divider:not(:empty)::after {
  margin-left: 16px;
}

/* Footer Switch links */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: #64748B;
}

.auth-footer a {
  color: #818CF8;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: #A5B4FC;
  text-decoration: underline;
}

/* Error Display Box */
.auth-error-box {
  background-color: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #F87171;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}

/* Verification Pending */
.verify-status-container {
  text-align: center;
  margin-bottom: 16px;
}

.verify-envelope-icon {
  width: 56px;
  height: 56px;
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.verify-pending-email-text {
  color: #818CF8;
  font-weight: 600;
  font-size: 15px;
  margin: 0;
}

.verify-info-box {
  background-color: #0F172A;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 8px;
}

/* DESKTOP SPLIT LAYOUT STYLING (min-width: 1025px) */
@media (min-width: 1025px) {
  .auth-split-container {
    display: flex;
    max-width: 1100px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
  }

  /* Left Info Column */
  .auth-info-panel {
    display: flex !important;
    flex: 1.2;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }

  .auth-info-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
  }

  .auth-info-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }

  .auth-info-hero p {
    font-size: 1.05rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 480px;
  }

  .auth-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .auth-feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818CF8;
    flex-shrink: 0;
  }

  .feature-text h3 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 4px 0;
  }

  .feature-text p {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
  }

  /* Right Form Column */
  .auth-form-panel {
    flex: 0.85;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Hide inner form logo on desktop since left panel has it */
  .auth-form-panel .auth-logo {
    display: none !important;
  }

  /* Align card title to left on desktop split screen */
  .auth-card h2,
  .auth-subtitle {
    text-align: left;
  }
}

/* MOBILE AND TABLET STYLING OVERRIDES (max-width: 1024px) */
@media (max-width: 1024px) {
  .auth-split-container {
    display: block;
    width: 100%;
  }

  .auth-info-panel {
    display: none !important; /* Strictly hidden */
  }

  .auth-form-panel {
    display: block;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 24px 0 !important;
    max-width: 100% !important;
  }

  /* Keep the underline styling for inputs on mobile too, using a slightly lighter default border */
  .form-input {
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
  }

  .form-input:focus {
    border-bottom-color: #818CF8 !important;
  }
}
