/* ==========================================================================
   ECUBE Forms Stylesheet
   Fidelity matching Resources/E-cube/parent.png & teacher.png
   ========================================================================== */

.auth-page-wrap {
  min-height: 100vh;
  background: #f8fafc;
  padding: 2rem 1rem 4rem 1rem;
}

.auth-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
}

/* Left Hero Aside */
.auth-aside {
  /* background: #ffffff; */
  background: #f2f4f8;
  padding: 3.5rem 2.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.aside-title-block h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.aside-title-block h1 .highlight-child {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aside-accent-line {
  width: 48px;
  height: 3.5px;
  background: #00a896;
  border-radius: 4px;
  margin: 0.75rem 0 1rem 0;
}

.aside-subtitle {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.aside-points-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.aside-point-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.aside-point-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aside-point-icon.cyan {
  background: #e6f7f5;
  color: #00a896;
}

.aside-point-icon.purple {
  background: #f3e8ff;
  color: #8b5cf6;
}

.aside-point-icon.pink {
  background: #ffe4e6;
  color: #f43f5e;
}

.aside-point-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}

.aside-point-text p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}

/* Parent & Child Illustration Image */
.aside-illustration-wrap {
  position: relative;
  width: calc(100% + 5rem);
  margin-left: -2.5rem;
  margin-right: -2.5rem;
  margin-top: auto;
  line-height: 0;
  overflow: hidden;
}

.aside-parent-img {
  width: 100%;
  height: auto;
  /* max-height: 380px; */
  max-height: max-content;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

/* Need Help Curved Card */
.aside-help-card {
  background: #00a896;
  color: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: 35px 35px 0 0;
  margin-top: -15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 25px rgba(0, 168, 150, 0.2);
  margin-left: -2.5rem;
  margin-right: -2.5rem;
}

.aside-help-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.aside-help-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.aside-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.aside-contact-row a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity var(--trans-fast);
}

.aside-contact-row a:hover {
  opacity: 0.85;
}

/* Right Form Content */
.auth-form-card {
  padding: 3rem;
  background: #ffffff;
  overflow-y: auto;
}

.form-header-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.form-header-badge .badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-teal-light);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.form-header-badge h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
}

.form-header-badge h2 span {
  color: #00a896;
}

.form-header-badge p {
  font-size: 0.85rem;
  color: #64748b;
}

/* Form Sections */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #00a896;
  margin: 1.75rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: #f43f5e;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #1e293b;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #00a896;
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}

/* Radio Group */
.radio-options-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.radio-label-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

/* Submit Buttons */
.btn-submit-gradient {
  width: 100%;
  padding: 0.95rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #00a896 0%, #3b82f6 50%, #f43f5e 100%);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.3);
  transition: all var(--trans-smooth);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 168, 150, 0.4);
}

.btn-google-auth {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  transition: all var(--trans-fast);
}

.btn-google-auth:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Login Container Specifics */
.auth-container.auth-login-card {
  max-width: 920px;
  grid-template-columns: 0.9fr 1.1fr;
}

.demo-fill-card {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  margin-top: auto;
}

.demo-fill-card h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.demo-fill-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  border: none;
  transition: all var(--trans-fast);
}

.demo-btn.admin {
  background: #0f172a;
  color: #ffffff;
}

.demo-btn.teacher {
  background: #0284c7;
  color: #ffffff;
}

.demo-btn.parent {
  background: #00a896;
  color: #ffffff;
}

.demo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.auth-register-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 1.25rem 0;
}

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

.auth-divider:not(:empty)::before {
  margin-right: .75em;
}

.auth-divider:not(:empty)::after {
  margin-left: .75em;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .auth-container {
    max-width: 96%;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .auth-aside {
    padding: 2.5rem 1.5rem 0 1.5rem;
  }

  .aside-illustration-wrap {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .aside-help-card {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 1.5rem;
  }

  .auth-form-card {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 768px) {
  .auth-page-wrap {
    padding: 1.25rem 0.85rem 3.5rem 0.85rem;
  }

  .auth-container,
  .auth-container.auth-login-card {
    grid-template-columns: 1fr;
    border-radius: 16px;
    max-width: 100%;
  }

  .auth-aside {
    display: none;
  }

  .auth-form-card {
    padding: 2rem 1.25rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-header-badge {
    margin-bottom: 1.5rem;
  }

  .form-header-badge h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 480px) {
  .auth-register-links-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-form-card {
    padding: 1.5rem 1rem;
  }
}