/* ============================================================
   Edge Flow — Auth (login / register) · dark fintech
   ============================================================ */
:root {
  --bg:        #07080b;
  --bg-2:      #0b0d12;
  --surface:   rgba(255,255,255,.025);
  --surface-2: rgba(255,255,255,.05);
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #e7e9ee;
  --text-dim:  #8b909c;
  --text-faint:#5a5f6b;
  --accent:    #6ee7b7;
  --accent-2:  #818cf8;
  --neg:       #f87171;
  --gold:      #e7c073;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body.ef-auth-page {
  margin: 0; padding: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--font); -webkit-font-smoothing: antialiased;
}

.ef-auth { display: flex; min-height: 100vh; }

/* ---------- Visual panel ---------- */
.ef-auth-visual {
  position: relative; flex: 0 0 46%; max-width: 620px;
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 20% 10%, rgba(110,231,183,.10), transparent 60%),
    radial-gradient(700px 420px at 90% 90%, rgba(129,140,248,.10), transparent 60%),
    linear-gradient(160deg, #0b0d12, #070809);
  border-right: 1px solid var(--line);
}
.ef-auth-constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ef-auth-visual-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; min-height: 100vh; padding: 44px;
}

.ef-auth-brand, .ef-auth-logo-mobile { display: flex; align-items: center; gap: 12px; }
.ef-auth-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: 1px; color: #06231a;
  background: linear-gradient(135deg, var(--accent), #3ec8a0);
  box-shadow: 0 8px 22px rgba(110,231,183,.3);
}
.ef-auth-brandtext { display: flex; flex-direction: column; line-height: 1.05; }
.ef-auth-brandtext strong { font-size: 17px; letter-spacing: 3px; }
.ef-auth-brandtext small { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-faint); }

.ef-auth-pitch { max-width: 420px; }
.ef-auth-pitch h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.6px; font-weight: 600; margin: 0 0 14px; }
.ef-auth-pitch h2 em { font-style: italic; color: var(--accent); }
.ef-auth-pitch p { color: var(--text-dim); font-size: 15px; line-height: 1.5; margin: 0 0 22px; }
.ef-auth-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ef-auth-features li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--text-dim); }
.ef-auth-features li span {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px;
  background: rgba(110,231,183,.12); border: 1px solid rgba(110,231,183,.4); position: relative;
}
.ef-auth-features li span::after {
  content: ""; position: absolute; left: 5px; top: 4px; width: 5px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ef-auth-foot { font-size: 11px; color: var(--text-faint); }

/* ---------- Form panel ---------- */
.ef-auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.ef-auth-card { width: 100%; max-width: 400px; }

.ef-auth-logo-mobile { display: none; justify-content: center; margin-bottom: 28px; }

.ef-auth-tabs {
  display: flex; gap: 3px; padding: 4px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px;
}
.ef-auth-tab {
  flex: 1; cursor: pointer; border: 0; background: transparent;
  color: var(--text-dim); font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 10px; border-radius: 9px; transition: all .15s;
}
.ef-auth-tab.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.ef-auth-pane { display: none; flex-direction: column; gap: 16px; }
.ef-auth-pane.is-active { display: flex; animation: ef-fade .3s ease; }
@keyframes ef-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ef-auth-pane h1 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.4px; }
.ef-auth-sub { margin: -8px 0 4px; color: var(--text-faint); font-size: 13px; }

.ef-field { display: flex; flex-direction: column; gap: 7px; }
.ef-field > span { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.ef-field input {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--text);
  padding: 13px 15px; border-radius: 11px;
  background: var(--bg-2); border: 1px solid var(--line); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ef-field input::placeholder { color: var(--text-faint); }
.ef-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110,231,183,.1); }

.ef-field-pass { position: relative; }
.ef-field-pass input { padding-right: 46px; }
.ef-pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 15px; opacity: .55;
  padding: 8px; border-radius: 8px; line-height: 1;
}
.ef-pass-toggle:hover { opacity: 1; }

.ef-auth-btn {
  margin-top: 6px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 14px; border-radius: 11px; border: 0; color: #06231a;
  background: linear-gradient(135deg, var(--accent), #45cda3);
  box-shadow: 0 8px 22px rgba(110,231,183,.25); transition: filter .15s, transform .05s;
}
.ef-auth-btn:hover { filter: brightness(1.05); }
.ef-auth-btn:active { transform: translateY(1px); }
.ef-auth-btn:disabled { opacity: .6; cursor: default; }

.ef-auth-msg {
  display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px;
}
.ef-auth-msg.show { display: block; animation: ef-fade .25s ease; }
.ef-auth-msg.error { color: var(--neg); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); }
.ef-auth-msg.ok    { color: var(--accent); background: rgba(110,231,183,.08); border: 1px solid rgba(110,231,183,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ef-auth-visual { display: none; }
  .ef-auth-logo-mobile { display: flex; }
}
