/* =========================================================
   GROSHAL OIL – Pro Authentication Layout (login / signup)
   Split-screen: brand showcase panel + clean form panel
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.gx-auth, .gx-auth * { box-sizing: border-box; }
html, body.gx-auth-body { margin: 0; padding: 0; min-height: 100%; }
body.gx-auth-body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #f3f6f4 !important;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

.gx-auth {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  min-height: 100vh;
}

/* ---------- Brand showcase panel ---------- */
.gx-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: #fff;
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(74, 190, 140, .35), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(217, 119, 6, .30), transparent 60%),
    linear-gradient(155deg, #0b2d22 0%, #114232 45%, #1d6b4d 100%);
}
.gx-brand-panel::before, .gx-brand-panel::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}
.gx-brand-panel::before { width: 520px; height: 520px; top: -160px; right: -180px; animation: gxFloat 14s ease-in-out infinite; }
.gx-brand-panel::after  { width: 380px; height: 380px; bottom: -140px; left: -120px; animation: gxFloat 18s ease-in-out infinite reverse; }
@keyframes gxFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,-22px) scale(1.05); } }

.gx-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none;
}
.gx-blob.b1 { width: 260px; height: 260px; background: #34d399; top: 38%; left: -80px; animation: gxFloat 16s ease-in-out infinite; }
.gx-blob.b2 { width: 200px; height: 200px; background: #f59e0b; bottom: 12%; right: 8%; animation: gxFloat 20s ease-in-out infinite reverse; }

.gx-brand-top, .gx-brand-mid, .gx-brand-foot { position: relative; z-index: 2; }
.gx-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 16px; padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.gx-logo-chip img { height: 44px; width: auto; display: block; }

.gx-brand-mid h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.8rem); line-height: 1.15; font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 16px; color: #fff;
}
.gx-brand-mid h2 span { color: #fcd34d; }
.gx-brand-mid p { font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 460px; margin: 0 0 32px; }

.gx-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gx-feature-list li {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 14px; padding: 14px 18px; max-width: 480px;
  transition: transform .25s ease, background .25s ease;
}
.gx-feature-list li:hover { transform: translateX(6px); background: rgba(255, 255, 255, .14); }
.gx-feature-list .ico {
  flex: 0 0 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); font-size: 1.15rem; color: #fcd34d;
}
.gx-feature-list strong { display: block; font-size: .95rem; font-weight: 600; }
.gx-feature-list small { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.gx-brand-foot { font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* ---------- Form panel ---------- */
.gx-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; position: relative;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(45, 122, 91, .07), transparent 60%),
    #f7faf8;
}
.gx-form-card {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 20px; padding: 34px 34px 28px;
  box-shadow: 0 1px 2px rgba(17, 66, 50, .05), 0 24px 60px -12px rgba(17, 66, 50, .18);
  border: 1px solid rgba(17, 66, 50, .06);
  animation: gxRise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.gx-form-card.wide { max-width: 680px; }
@keyframes gxRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.gx-mobile-logo { display: none; text-align: center; margin-bottom: 20px; }
.gx-mobile-logo img { height: 46px; }

.gx-form-card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #0b2d22; margin: 0 0 4px; }
.gx-form-card .gx-sub { color: #6b7280; font-size: .88rem; margin: 0 0 22px; }

.gx-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 12px; padding: 12px 14px; font-size: .88rem; font-weight: 500; margin-bottom: 20px;
}

.gx-field { margin-bottom: 14px; text-align: left; }
.gx-field label { display: block; font-size: .76rem; font-weight: 600; color: #374151; margin-bottom: 6px; letter-spacing: .01em; }
.gx-input-wrap { position: relative; }
.gx-input-wrap > i.lead {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #9ca3af; font-size: .95rem; pointer-events: none; transition: color .2s;
}
.gx-input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  font-family: inherit; font-size: .88rem; color: #111827;
  background: #f8faf9; border: 1.5px solid #e5e7eb; border-radius: 12px;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
select.gx-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.gx-input::placeholder { color: #b0b7c0; }
.gx-input:hover { border-color: #c7d2cc; }
.gx-input:focus { background: #fff; border-color: #2d7a5b; box-shadow: 0 0 0 4px rgba(45, 122, 91, .14); }
.gx-input-wrap:focus-within > i.lead { color: #2d7a5b; }

.gx-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px;
  color: #9ca3af; cursor: pointer; transition: background .2s, color .2s;
}
.gx-eye:hover { background: #eef5f1; color: #2d7a5b; }
.gx-input.has-eye { padding-right: 46px; }

.gx-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; }
.gx-check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #4b5563; cursor: pointer; margin: 0; }
.gx-check input { width: 17px; height: 17px; accent-color: #2d7a5b; }
.gx-link { color: #2d7a5b; font-weight: 600; font-size: .88rem; text-decoration: none; }
.gx-link:hover { color: #114232; text-decoration: underline; }

.gx-btn {
  position: relative; width: 100%; height: 44px;
  border: 1.5px solid rgba(45, 122, 91, 0.38) !important;
  border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.01em;
  color: #114232 !important;
  background: rgba(45, 122, 91, 0.15) !important;
  box-shadow: none !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  overflow: hidden;
}
.gx-btn:hover {
  transform: translateY(-1px);
  background: rgba(45, 122, 91, 0.26) !important;
  border-color: rgba(45, 122, 91, 0.6) !important;
  color: #0b2d22 !important;
}
.gx-btn:active { transform: translateY(0); }
.gx-btn[disabled] { opacity: 0.8; cursor: progress; }
.gx-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(17, 66, 50, 0.3); border-top-color: #114232;
  animation: gxSpin 0.7s linear infinite; display: none;
}
.gx-btn.loading .gx-spinner { display: inline-block; }
@keyframes gxSpin { to { transform: rotate(360deg); } }

.gx-divider { display: flex; align-items: center; gap: 14px; color: #9ca3af; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 24px 0 18px; }
.gx-divider::before, .gx-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.gx-switch { text-align: center; font-size: .92rem; color: #6b7280; margin: 0; }
.gx-switch a { color: #2d7a5b; font-weight: 700; text-decoration: none; }
.gx-switch a:hover { text-decoration: underline; }

.gx-meter { height: 5px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.gx-meter > span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .3s, background .3s; }
.gx-meter-text { font-size: .74rem; color: #6b7280; margin-top: 4px; display: block; }

.gx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.gx-secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: #9ca3af; font-size: .76rem; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .gx-auth { grid-template-columns: minmax(520px, 45%) 1fr; }
  .gx-form-card { max-width: 500px; padding: 40px; }
  .gx-form-card.wide { max-width: 720px; }
}
@media (max-width: 991.98px) {
  .gx-auth { grid-template-columns: 1fr; }
  .gx-brand-panel { display: none; }
  .gx-mobile-logo { display: block; }
  .gx-form-panel {
    padding: 28px 16px; align-items: flex-start;
    background:
      radial-gradient(600px 300px at 50% -10%, rgba(45, 122, 91, .16), transparent 70%),
      #f3f6f4;
  }
  .gx-form-card, .gx-form-card.wide { margin: 8px auto; }
}
@media (max-width: 575.98px) {
  .gx-form-panel { padding: 16px 12px; }
  .gx-form-card { padding: 22px 18px 18px; border-radius: 16px; }
  .gx-mobile-logo { margin-bottom: 12px; }
  .gx-mobile-logo img { height: 34px; }
  .gx-form-card h1 { font-size: 1.25rem; }
  .gx-form-card .gx-sub { font-size: .8rem; margin-bottom: 16px; }
  .gx-grid-2 { grid-template-columns: 1fr; }
  .gx-field { margin-bottom: 11px; }
  .gx-field label { font-size: .72rem; margin-bottom: 4px; }
  .gx-input { height: 40px; font-size: .84rem; border-radius: 10px; }
  .gx-btn { height: 42px; font-size: .88rem; border-radius: 10px; }
  .gx-row { margin: 2px 0 16px; }
  .gx-check, .gx-link, .gx-switch { font-size: .8rem; }
  .gx-divider { margin: 16px 0 12px; }
  .gx-secure-note { margin-top: 14px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-brand-panel::before, .gx-brand-panel::after, .gx-blob, .gx-form-card { animation: none; }
}

/* ---------- Mobile brand header ---------- */
.gx-mobile-hero { display: none; }
.gx-mobile-hero .gx-logo-chip { padding: 8px 14px; border-radius: 14px; }
.gx-mobile-hero .gx-logo-chip img { height: 34px; }

/* ---------- Signup stepper & steps ---------- */
.gx-stepper {
  list-style: none; margin: 0 0 22px; padding: 0; position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.gx-stepper li { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; width: 76px; }
.gx-stepper .dot {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #dbe5df; color: #9ca3af; font-size: 1rem; transition: all .3s;
}
.gx-stepper em { font-style: normal; font-size: .72rem; font-weight: 600; color: #9ca3af; transition: color .3s; }
.gx-stepper li.active .dot { border-color: #2d7a5b; color: #2d7a5b; box-shadow: 0 0 0 5px rgba(45, 122, 91, .14); }
.gx-stepper li.active em { color: #114232; }
.gx-stepper li.done .dot { background: linear-gradient(135deg, #2d7a5b, #114232); border-color: transparent; color: #fff; }
.gx-stepper li.done em { color: #2d7a5b; }
.gx-step-line { position: absolute; z-index: 1; top: 18px; left: 38px; right: 38px; height: 3px; background: #e5ebe7; border-radius: 99px; overflow: hidden; }
.gx-step-line > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2d7a5b, #34a47a); transition: width .4s ease; }

.gx-step { display: none; }
.gx-step.active { display: block; animation: gxStepIn .35s ease both; }
@keyframes gxStepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.gx-step-title { font-size: 1rem; font-weight: 700; color: #0b2d22; margin: 0 0 14px; }
.gx-hint { display: block; font-size: .72rem; color: #9ca3af; margin-top: 4px; }
.gx-input.invalid { border-color: #ef4444; background: #fff7f7; box-shadow: 0 0 0 4px rgba(239, 68, 68, .1); }
.gx-step-error { display: none; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; font-size: .8rem; font-weight: 500; padding: 8px 12px; margin-bottom: 12px; }
.gx-step-error.show { display: block; }

.gx-nav { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.gx-nav .gx-btn { flex: 1; width: auto; }
.gx-btn-ghost {
  height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid rgba(107, 114, 128, 0.25) !important;
  background: rgba(107, 114, 128, 0.08) !important;
  color: #374151 !important;
  font-family: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, border-color .2s;
}
.gx-btn-ghost:hover { background: rgba(107, 114, 128, 0.16) !important; border-color: rgba(107, 114, 128, 0.4) !important; color: #1f2937 !important; }

/* ---------- Mobile layout (<992px) ---------- */
@media (max-width: 991.98px) {
  .gx-mobile-logo { display: none !important; }
  .gx-form-panel { padding: 0 0 24px; flex-direction: column; align-items: stretch; justify-content: flex-start; background: #f3f6f4; }
  .gx-mobile-hero {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 28px 20px 60px; color: #fff; position: relative; overflow: hidden;
    border-radius: 0 0 28px 28px;
    background:
      radial-gradient(420px 220px at 10% -20%, rgba(110, 231, 183, .35), transparent 60%),
      radial-gradient(360px 200px at 100% 110%, rgba(245, 158, 11, .3), transparent 60%),
      linear-gradient(150deg, #0b2d22 0%, #114232 55%, #1f7a58 100%);
  }
  .gx-mobile-hero::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13); right: -70px; top: -90px; }
  .gx-mh-title { font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; margin-top: 6px; }
  .gx-mh-sub { font-size: .74rem; color: rgba(255, 255, 255, .75); }
  .gx-form-card, .gx-form-card.wide {
    width: calc(100% - 32px); max-width: 520px; margin: -34px auto 0; position: relative; z-index: 2;
  }
}
@media (max-width: 575.98px) {
  .gx-mobile-hero { padding: 18px 14px 44px; border-radius: 0 0 20px 20px; }
  .gx-mobile-hero .gx-logo-chip img { height: 26px; }
  .gx-mh-title { font-size: 0.95rem; }
  .gx-mh-sub { font-size: 0.68rem; }
  .gx-form-card, .gx-form-card.wide {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: -26px auto 0;
    padding: 18px 16px 14px;
    border-radius: 16px;
  }
  .gx-form-card h1 { text-align: center; font-size: 1.15rem; }
  .gx-form-card .gx-sub { text-align: center; font-size: 0.78rem; margin-bottom: 14px; }
  .gx-stepper { margin-bottom: 14px; }
  .gx-stepper li { width: 58px; }
  .gx-stepper .dot { width: 28px; height: 28px; font-size: 0.82rem; }
  .gx-step-line { top: 13px; left: 28px; right: 28px; }
  .gx-stepper em { font-size: 0.65rem; }
  .gx-step-title { font-size: 0.88rem; margin-bottom: 8px; }
  .gx-grid-2 { grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .gx-field { margin-bottom: 10px; }
  .gx-field label { font-size: 0.7rem; margin-bottom: 3px; }
  .gx-input { height: 38px; font-size: 0.82rem; border-radius: 9px; padding: 0 10px 0 36px; }
  .gx-input-wrap > i.lead { left: 11px; font-size: 0.85rem; }
  .gx-btn { height: 40px; font-size: 0.85rem; border-radius: 9px; }
  .gx-btn-ghost { height: 40px; padding: 0 12px; font-size: 0.8rem; border-radius: 9px; }
}
@media (max-width: 360px) {
  .gx-grid-2 { grid-template-columns: 1fr; }
}
