/* AAgFFiN split-screen login — left auth form, right success-story slider
   fetched from aha_testimonial posts. Namespaced "ag-" to avoid colliding
   with the inherited theme's own .acct-login-* rules. */

html,body.ag-login-body{margin:0;height:100%;overflow:hidden}
body.ag-login-body{font-family:var(--fb);background:#fff;color:var(--dark)}

.ag-login{height:100vh;display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;padding:1.25rem}
@media(max-width:900px){.ag-login{grid-template-columns:1fr;padding:0}}

.ag-login-left{position:relative;display:flex;flex-direction:column;padding:2rem 4.5rem;background:#fff;border-radius:28px;overflow:hidden}
@media(max-width:900px){.ag-login-left{border-radius:0;height:100vh}}
@media(max-width:700px){.ag-login-left{padding:1.5rem}}
.ag-login-back{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;font-size:.85rem;font-weight:600;color:var(--mid);text-decoration:none;margin-bottom:.5rem}
.ag-login-back:hover{color:var(--green)}
.ag-login-center{flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
.ag-login-form-wrap{max-width:380px;width:100%;margin:0 auto}
.ag-login-brand{font-family:var(--fd);font-weight:800;font-size:1.3rem;color:var(--dark);margin-bottom:2.5rem;display:block}
.ag-login-title-link{color:inherit;text-decoration:none}
.ag-login-title-link:hover{text-decoration:underline}
.ag-login-left h1{font-family:var(--fd);font-size:1.9rem;font-weight:700;color:var(--dark);margin-bottom:.6rem}
.ag-login-form-wrap > p{color:var(--mid);font-size:.95rem;line-height:1.55;margin-bottom:2rem}

.ag-login .acct-login-card,
.ag-login .woocommerce-form-login{background:none;box-shadow:none;padding:0;border:none}
.ag-login label{display:block;font-size:.82rem;font-weight:700;color:var(--dark);margin-bottom:.4rem;margin-top:1.1rem}
.ag-login label:first-of-type{margin-top:0}
.ag-login input[type="text"],
.ag-login input[type="email"],
.ag-login input[type="password"]{width:100%;padding:.8rem 1rem;border:1.5px solid var(--border);border-radius:12px;font-size:.95rem;background:var(--shell);color:var(--dark)}
.ag-login input:focus{outline:none;border-color:var(--green)}
.ag-login .woocommerce-form-login__submit,
.ag-login .ag-login-form-wrap button[type="submit"],
.ag-login .ag-login-form-wrap button[type="button"]:not(.ag-login-google){width:100%;margin-top:1.6rem;padding:.95rem;border-radius:50px;background:var(--green);color:#fff;font-weight:700;font-size:.95rem;border:none;cursor:pointer;transition:background .2s}
.ag-login .woocommerce-form-login__submit:hover,
.ag-login button[type="submit"]:hover{background:var(--green-d)}

.ag-login-divider{display:flex;align-items:center;gap:12px;margin:1.5rem 0;color:var(--muted);font-size:.82rem}
.ag-login-divider::before,.ag-login-divider::after{content:'';flex:1;height:1px;background:var(--border)}

.ag-login-google{width:100%;padding:.85rem;border-radius:50px;border:1.5px solid var(--border);background:var(--shell);color:var(--dark);
  font-weight:600;font-size:.9rem;display:flex;align-items:center;justify-content:center;gap:10px;cursor:not-allowed;opacity:.6}

.ag-login-signup{text-align:center;margin-top:1.6rem;font-size:.9rem;color:var(--mid)}
.ag-login-signup a{color:var(--green);font-weight:700}

.ag-login-terms{text-align:center;margin-top:2.5rem;font-size:.78rem;color:var(--muted)}
.ag-login-terms a{text-decoration:underline}

.ag-err{color:var(--red-d);font-size:.82rem;margin:.7rem 0 0;font-weight:700}
.ag-hint{font-size:.75rem;color:var(--muted);margin-top:.5rem}
.ag-forgot-ok{color:var(--green-d);font-size:.82rem;margin:.7rem 0 0;font-weight:700}

/* TEMPORARY — QA credentials modal, remove before launch. */
.ag-login-testinfo-btn{width:auto!important;margin:2rem auto 0!important;display:block;padding:.5rem 1rem!important;
  border-radius:999px!important;border:1px dashed var(--border)!important;background:var(--shell)!important;color:var(--muted)!important;
  font-size:.78rem;font-weight:700;cursor:pointer}
.ag-login-testinfo-btn:hover{border-color:var(--green)!important;color:var(--green-d)!important}

.ag-login-testinfo-overlay{position:fixed;inset:0;background:rgba(45,33,24,.5);z-index:1000;
  display:flex;align-items:flex-start;justify-content:center;padding:8vh 20px;overflow-y:auto}
.ag-login-testinfo-overlay[hidden]{display:none}
.ag-login-testinfo-modal{background:#fff;border-radius:20px;max-width:640px;width:100%;padding:22px;
  box-shadow:0 24px 60px rgba(45,33,24,.25);margin-bottom:8vh}
.ag-login-testinfo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.ag-login-testinfo-head p{margin:0;font-size:.85rem;color:var(--mid)}
.ag-login-testinfo-head code{background:var(--husk);padding:.1rem .4rem;border-radius:6px;font-size:.8rem}
.ag-login-testinfo-close{flex-shrink:0;width:30px;height:30px;border-radius:50%;border:none;background:var(--husk);
  color:var(--mid);font-size:1.2rem;line-height:1;cursor:pointer}
.ag-login-testinfo-close:hover{background:#e5dbc4}
.ag-login-testinfo-body{overflow-x:auto}
.ag-login-testinfo-body table{border-collapse:collapse;width:100%;font-size:.78rem}
.ag-login-testinfo-body th,.ag-login-testinfo-body td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--border);white-space:nowrap}
.ag-login-testinfo-body th{color:var(--muted);font-weight:700}
.ag-login-testinfo-body td{color:var(--dark)}
.ag-login-testinfo-use{padding:.35rem .8rem!important;width:auto!important;margin:0!important;
  border-radius:999px!important;border:1px solid var(--green)!important;background:#fff!important;
  color:var(--green-d)!important;font-size:.75rem!important;font-weight:700;cursor:pointer}
.ag-login-testinfo-use:hover{background:var(--green-xl)!important}

/* ── Right: success-story slider — a floating rounded panel, hidden on
   mobile (the form is the priority there; the slider is decorative). ── */
.ag-login-right{position:relative;overflow:hidden;background:var(--skin);border-radius:28px}
@media(max-width:900px){.ag-login-right{display:none}}
.ag-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .6s ease;display:flex;flex-direction:column;justify-content:space-between}
.ag-slide.is-active{opacity:1;z-index:1}
.ag-slide::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,32,13,.15) 0%,rgba(20,32,13,.05) 40%,rgba(20,32,13,.75) 100%)}
.ag-slide-top{position:relative;z-index:2;padding:2.5rem}
.ag-slide-top .ag-login-tag{color:var(--millet);font-family:var(--fd);font-size:1.3rem;font-weight:700}
.ag-slide-card{position:relative;z-index:2;margin:0 1.5rem 1.5rem;background:rgba(20,32,13,.55);backdrop-filter:blur(6px);border-radius:24px;padding:1.75rem 2rem;color:var(--millet)}
.ag-slide-quote{font-family:var(--fd);font-size:1.15rem;line-height:1.5;margin-bottom:1rem}
.ag-slide-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}
.ag-slide-name{font-weight:700;font-size:.95rem}
.ag-slide-role{font-size:.82rem;color:rgba(252,247,235,.7)}
.ag-slide-nav{display:flex;gap:.5rem;flex-shrink:0}
.ag-slide-btn{width:34px;height:34px;border-radius:50%;background:rgba(252,247,235,.15);border:1px solid rgba(252,247,235,.3);
  color:var(--millet);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.ag-slide-btn:hover{background:rgba(252,247,235,.28)}
