/* ----- RIGHT: Form Viewport Container ----- */
.right-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  height: 100%;
}

/* ----- LEFT HERO ----- */
.left-hero {
  flex: 0 0 26%;
  background: url('https://img.magnific.com/free-vector/cloud-network-system-background-vector-social-media-banner_53876-111845.jpg?semt=ais_hybrid&w=740&q=80') no-repeat center/cover;
  background-color: #0a111f;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  padding: 32px 28px 40px 28px;
  overflow: hidden;
}

/* Dark overlay for readability */
.left-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(2, 8, 20, 0.85) 0%, rgba(2, 8, 20, 0.55) 50%, rgba(2, 8, 20, 0.70) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Glow accent */
.left-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.012) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ----- TOP: Logo & brand ----- */
.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.company-name {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.company-name span {
  color: #7bc6ff;
  font-weight: 700;
}

/* ----- CENTER: Hero content ----- */
.hero-center {
  position: relative;
  margin-bottom: 30%;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0;
  justify-content: center;
}

.hero-center .badge {
  display: inline-block;
  background: rgba(0, 200, 255, 0.15);
  padding: 4px 16px;
  border-radius: 40px;
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  border: 1px solid rgba(0, 200, 255, 0.15);
  color: #8ac4ff;
  backdrop-filter: blur(4px);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-center h1 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.1rem;
}

.hero-center .sub-text {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  color: #fff;
  max-width: 90%;
  backdrop-filter: blur(2px);
  letter-spacing: 0.4px;
  margin-bottom: 1.5rem;
}

.hero-center .feature-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-center .feature-list .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #c0d9f5;
  opacity: 0.85;
  backdrop-filter: blur(2px);
}

.hero-center .feature-list .feature-item i {
  color: #7bc6ff;
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

/* ----- BOTTOM: small footer info ----- */
.hero-bottom {
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.692);
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hero-bottom span i {
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.3);
}

/* ----- RIGHT: 70% — fresh bg + card ----- */
.right-form {
  flex: 1;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow-y: auto;
}

.form-card {
  background: #ffffff;
  width: 100%;
  max-width: 1100px;
  padding: 40px;
  border-radius: 12px;
  box-shadow:
    0 20px 50px -12px rgba(0, 20, 40, 0.12),
    0 8px 24px -6px rgba(0, 0, 0, 0.04);
  margin: auto;
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* ----- AUTO-RESPONSIVE FORM GRID ----- */
.form-grid {

}

.registerContainer{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 24px;
  align-items: end;

}

/* Explicit spans control full layout width configurations gracefully */
.full-width {
  grid-column: 1 / -1;
}

.file-upload-group {
  grid-column: span 1;
}

.pincode-row {
  grid-column: span 1;
  width: 100%;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  width: 100%;
}

.field-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f3147;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-group label i {
  font-size: 0.85rem;
  color: #4d6a8f;
  width: 16px;
  text-align: center;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 450;
  color: #0a1929;
  transition: all 0.2s ease;
  outline: none;
  font-family: "Inter", sans-serif;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #697999da;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(42, 109, 244, 0.06);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #a7b9d0;
  font-weight: 400;
  font-size: 0.9rem;
}

.field-group textarea {
  resize: vertical;
  min-height: 48px;
}

.field-group select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 14 8"><path d="M1 1l6 6 6-6" stroke="%234d6a8f" stroke-width="1.8" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 8px;
  padding-right: 44px;
  cursor: pointer;
}

/* Password positioning styling */
.pass-group input {
  padding-right: 48px;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  bottom: 14px;
  color: #7b8fa8;
  cursor: pointer;
  font-size: 1rem;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.2s;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-pass:hover {
  color: #2a6df4;
}

/* Modern dashed responsive file layout definitions */
.file-upload-group input[type="file"] {
  padding: 10px 14px;
  background: #eef5ff86;
  border: 1.5px dashed #c8d8ec;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1f3147;
  cursor: pointer;
  width: 100%;
}

.file-upload-group input[type="file"]::-webkit-file-upload-button {
  background: #dae5f8;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: #12233a;
  margin-right: 12px;
  font-size: 0.8rem;
  transition: background 0.15s;
}

.file-upload-group input[type="file"]::-webkit-file-upload-button:hover {
  background: #d5e2f5;
}

/* Interactive register submission element layout changes */
.btn-register {
  grid-column: 1 / -1;
  width: 160px;
  background: var(--primary-color);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(10, 30, 54, 0.3);
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.btn-register:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(0, 20, 40, 0.35);
}

.btn-register:active {
  transform: scale(0.98);
}

/* Redesigned clean layout component hooks */
.auth-footer-links {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}

.auth-footer-links .login-link a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-links .login-link a:hover {
  text-decoration: underline;
}

/* Autofill styling overrides */
input:-webkit-autofill {
  background-color: #f8fcff !important;
  -webkit-box-shadow: 0 0 0px 1000px #f8fcff inset;
}

.btn-secondary {
  box-shadow: 0 20px 50px -12px #949faa !important;
  background-color: #F8FAFC;
  color: #181C14;
}

.mobile-section,.mobile-section1,.tablet-screen-section{
  display: none !important;
}
/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Laptops & Small Desktops */
@media (max-width: 1200px) {
  .form-card {
    max-width: 95%;
    padding: 30px;
  }
}

/* Tablets & below – logo only in left hero */
@media (max-width: 992px) {
  .mobile-section,.tablet-screen-section{
  display: flex !important;
}
.desktop-screen-section{
  display: none !important;
}
  .portal-wrapper {
    flex-direction: column;
    overflow-y: auto;
  }

  .left-hero {
    flex: 0 0 auto;
    width: 100%;
    min-height: 110px;
    padding: 18px 24px;
    justify-content: center;          /* center the logo vertically */
  }

  /* Hide center content + footer – keep only logo */
  .hero-center,
  .hero-bottom {
    display: none !important;
  }

  .hero-top {
    justify-content: center;
  }

  .hero-top .company-logo img {
    width: 220px;                     /* slightly smaller logo on tablet */
    max-width: 70vw;
  }

  .right-viewport {
    width: 100%;
    padding: 30px 20px;
    align-items: flex-start;
    overflow: visible;
  }

  .form-card {
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .registerContainer {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Small Mobile */
@media (max-width: 576px) {
.mobile-section,.mobile-section1{
  display: flex !important;
}
.desktop-screen-section,.tablet-screen-section{
  display: none !important;
}
  .left-hero {
    min-height: 90px;
    padding: 14px 16px;
  }

  .hero-top .company-logo img {
    width: 220px !important;
  }

  .right-viewport {
    padding: 16px 12px;
  }

  .form-card {
    padding: 24px 16px;
    border-radius: 8px;
  }

  .form-header {
    margin-bottom: 20px;
  }

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

  .registerContainer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .btn-register {
    width: 100%;
    justify-self: center;
  }
}