/* =====================================================================
   MAILNEX PREMIUM AUTH LAYOUT & DESIGN SYSTEM
   Inspired by Reference Architecture:
     - Wide horizontal curved container
     - Deep Forest-Green Ambient Backdrop
     - Left Organic Curved White Surface with Brand Logo & 3D Laptop Asset
     - Right Sleek Deep-Green Form with Golden Yellow Action Buttons
   ===================================================================== */

body.auth-page {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 20%, rgba(3, 134, 102, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(251, 176, 45, 0.12) 0%, transparent 40%),
              linear-gradient(135deg, #081C15 0%, #133E2A 50%, #081C15 100%);
  font-family: var(--font-family-base, 'Poppins', sans-serif);
  color: #FFFFFF;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Atmospheric floating ambient circles */
.auth-ambient-bubble {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.auth-ambient-bubble.b-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #038666, transparent 70%);
  top: -80px;
  left: -80px;
}

.auth-ambient-bubble.b-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #FBB02D, transparent 70%);
  bottom: -60px;
  right: -40px;
}

.auth-ambient-bubble.b-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, #FFFFFF, transparent 70%);
  top: 40%;
  left: 25%;
  opacity: 0.08;
}

/* Master Auth Card */
.auth-card-wide {
  width: 100%;
  max-width: 1040px;
  min-height: 600px;
  background-color: #133E2A;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Left Panel: White Organic Surface */
.auth-panel-visual {
  flex: 1.15;
  background-color: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
  z-index: 2;
}

/* Organic curved divider using SVG clip/overlay */
.auth-panel-visual::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 80px;
  height: 100%;
  background-color: #FFFFFF;
  border-radius: 0 50% 50% 0 / 0 50% 50% 0;
  transform: scaleY(1.4);
  pointer-events: none;
  z-index: 1;
}

/* Decorative soft bubbles inside the white panel */
.visual-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 134, 102, 0.08) 0%, rgba(3, 134, 102, 0.02) 70%);
  pointer-events: none;
  z-index: 1;
}

.visual-bubble.vb-1 {
  width: 280px;
  height: 280px;
  top: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(24, 67, 34, 0.06) 0%, transparent 70%);
}

.visual-bubble.vb-2 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 15%;
}

.visual-bubble.vb-3 {
  width: 90px;
  height: 90px;
  bottom: 12%;
  left: 8%;
}

/* Logo placement at top-left */
.auth-visual-brand {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
}

.auth-brand-logo-img {
  max-height: 42px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Central 3D Workstation Artwork */
.auth-visual-center {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  flex: 1;
}

.auth-laptop-artwork {
  max-width: 90%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(8, 28, 21, 0.15));
  transition: transform 0.4s ease;
}

.auth-laptop-artwork:hover {
  transform: scale(1.02) translateY(-4px);
}

.auth-visual-footer {
  position: relative;
  z-index: 5;
  font-size: 11.5px;
  color: #6B7280;
}

/* Right Panel: Deep-Green Login Form */
.auth-panel-form {
  flex: 0.85;
  background-color: #133E2A;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.auth-form-container {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.auth-form-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-form-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
  line-height: 1.4;
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 7px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background-color: rgba(8, 28, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #FFFFFF;
  font-family: var(--font-family-base, 'Poppins', sans-serif);
  font-size: 13.5px;
  outline: none;
  transition: all var(--transition-fast, 0.15s ease);
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
  border-color: #FBB02D;
  background-color: rgba(8, 28, 21, 0.8);
  box-shadow: 0 0 0 3px rgba(251, 176, 45, 0.25);
}

.auth-btn-primary {
  width: 100%;
  padding: 14px;
  background-color: #FBB02D;
  color: #081C15;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-family-base, 'Poppins', sans-serif);
  transition: all 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(251, 176, 45, 0.25);
}

.auth-btn-primary:hover {
  background-color: #E09E24;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 176, 45, 0.35);
}

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

.auth-links {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-link {
  color: #FBB02D;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.auth-footer-notes {
  margin-top: 28px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

.auth-footer-notes a {
  color: rgba(255, 255, 255, 0.55);
}

.auth-footer-notes a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Alert Boxes in Auth */
.auth-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-alert-danger {
  background-color: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #FCA5A5;
}

.auth-alert-success {
  background-color: rgba(3, 134, 102, 0.2);
  border: 1px solid rgba(3, 134, 102, 0.4);
  color: #6EE7B7;
}

.auth-dev-badge {
  margin-top: 18px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.auth-dev-badge code {
  color: #FBB02D;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 4px;
  border-radius: 3px;
}

/* =====================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE SCREENS)
   ===================================================================== */
@media (max-width: 900px) {
  body.auth-page {
    padding: 16px;
    align-items: flex-start;
  }

  .auth-card-wide {
    flex-direction: column;
    min-height: auto;
    border-radius: 20px;
  }

  .auth-panel-visual {
    padding: 28px 24px;
    flex: none;
  }

  .auth-panel-visual::after {
    display: none;
  }

  .auth-laptop-artwork {
    max-height: 220px;
  }

  .auth-panel-form {
    padding: 36px 24px;
    flex: none;
  }
}

@media (max-width: 480px) {
  .auth-laptop-artwork {
    max-height: 160px;
  }

  .auth-form-title {
    font-size: 26px;
  }
}
