/* PowerEnglish — Auth (Login/Sign-up/Forgot) lightweight styles
   Scope: only pages that include this file. */

:root{
  --pe-auth-grad: linear-gradient(135deg,#ff7a00 0%,#ff3d7f 38%,#7b2cff 75%,#2d6bff 100%);
  --pe-auth-shadow: 0 18px 60px rgba(15, 23, 42, 0.18);
  --pe-auth-card-radius: 18px;
}

.pe-auth{
  position: relative;
  min-height: calc(100vh - 1px);
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(255,122,0,0.20), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(123,44,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 40% 90%, rgba(45,107,255,0.16), transparent 60%),
    #f6f7fb;
}

.pe-auth .pe-auth-shell{
  padding: 28px 0;
}

.pe-auth .pe-auth-frame{
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 24px;
  box-shadow: var(--pe-auth-shadow);
  overflow: hidden;
}

.pe-auth .pe-auth-form{
  background: #fff;
}

.pe-auth .pe-auth-form-inner{
  padding: 26px 24px;
}
@media (min-width: 992px){
  .pe-auth .pe-auth-form-inner{
    padding: 42px 44px;
  }
}

.pe-auth .pe-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 18px;
}
.pe-auth .pe-brand img{
  height: 52px;
  width: auto;
}

.pe-auth .pe-title{
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  color: #0f172a;
  font-weight: 800;
}
.pe-auth .pe-subtitle{
  margin: 0 0 18px 0;
  color: #475569;
  font-size: 14px;
}

.pe-auth .form-label{
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.pe-auth .input-group{
  border-radius: 12px;
}
.pe-auth .input-group .input-group-text{
  background: #fff;
  border: 1px solid #d6dbe6;
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  color: #64748b;
  padding: 0.6rem 0.75rem;
}
.pe-auth .form-control{
  border: 1px solid #d6dbe6;
  border-left: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 0.65rem 0.85rem;
  color: #0f172a;
}
.pe-auth .form-control::placeholder{
  color: #94a3b8;
}
.pe-auth .form-control:focus{
  box-shadow: none;
}
.pe-auth .input-group:focus-within .input-group-text,
.pe-auth .input-group:focus-within .form-control{
  border-color: rgba(99,102,241,0.55);
}
.pe-auth .input-group:focus-within{
  outline: 3px solid rgba(99,102,241,0.20);
  outline-offset: 2px;
  border-radius: 14px;
}

.pe-auth .pe-auth-actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.pe-auth .form-check-input:focus{
  box-shadow: 0 0 0 0.2rem rgba(99,102,241,0.18);
}

.pe-auth .pe-link{
  color:#475569;
  font-weight:600;
  text-decoration:none;
}
.pe-auth .pe-link:hover,
.pe-auth .pe-link:focus-visible{
  color:#0f172a;
  text-decoration: underline;
}

.pe-auth .pe-btn-grad{
  border: none;
  background: var(--pe-auth-grad);
  color: #fff;
  font-weight: 800;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(123,44,255,0.25);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.pe-auth .pe-btn-grad:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(123,44,255,0.28);
}
.pe-auth .pe-btn-grad:focus-visible{
  outline: 3px solid rgba(99,102,241,0.28);
  outline-offset: 3px;
}

.pe-auth .pe-btn-outline{
  border: 1px solid #d6dbe6;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  padding: 0.72rem 1rem;
  border-radius: 14px;
}
.pe-auth .pe-btn-outline:hover{
  background: #f8fafc;
}
.pe-auth .pe-btn-outline:focus-visible{
  outline: 3px solid rgba(2,132,199,0.18);
  outline-offset: 3px;
}

.pe-auth .pe-auth-side{
  position: relative;
  min-height: 260px;
  background: var(--pe-auth-grad);
  color: #fff;
}
.pe-auth .pe-auth-side::before,
.pe-auth .pe-auth-side::after{
  content:"";
  position:absolute;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.55;
}
.pe-auth .pe-auth-side::before{
  width: 260px;
  height: 260px;
  top: -110px;
  right: -90px;
  background: rgba(255,255,255,0.25);
}
.pe-auth .pe-auth-side::after{
  width: 220px;
  height: 220px;
  bottom: -120px;
  left: -90px;
  background: rgba(0,0,0,0.14);
}
.pe-auth .pe-auth-side-inner{
  position: relative;
  padding: 26px 24px;
}
@media (min-width: 992px){
  .pe-auth .pe-auth-side-inner{
    padding: 46px 44px;
  }
}
.pe-auth .pe-side-title{
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.25;
}
.pe-auth .pe-side-text{
  margin: 0 0 18px 0;
  opacity: 0.92;
  font-size: 14px;
  line-height: 1.55;
}
.pe-auth .pe-side-cta{
  font-weight: 800;
  opacity: 0.95;
}

/* Right panel: logo placement */
.pe-auth .pe-side-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 18px;
}
.pe-auth .pe-side-logo img{
  width: min(320px, 78%);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.20));
}

/* Single-card variant (no right gradient panel) */
.pe-auth.pe-auth--single .pe-auth-frame{
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.pe-auth.pe-auth--single .pe-auth-form-inner{
  padding: 28px 24px;
}
@media (min-width: 992px){
  .pe-auth.pe-auth--single .pe-auth-form-inner{
    padding: 44px 48px;
  }
}

/* reCAPTCHA alignment */
.pe-auth .g-recaptcha{
  transform-origin: 0 0;
}
@media (max-width: 380px){
  .pe-auth .g-recaptcha{
    transform: scale(0.92);
  }
}
