/* =========================================================
   GR AUTH PAGES — même design que le MODAL (#grAuthModal)
   Scope: #grAuthPage (évite conflits thème uDesign)
   ========================================================= */

/* Page wrapper */
body #grAuthPage.gr-auth-page{
  padding: 60px 12px;
  background: #f6f8fb;
}

/* Card */
body #grAuthPage .gr-auth-card{
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}

/* Header (comme modal) */
body #grAuthPage .gr-auth-header{
  background: #0b66ff;
  color: #fff;
  border-bottom: 0;
  padding: 18px 22px;
}

body #grAuthPage .gr-auth-title{
  margin: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  letter-spacing: .2px;
}

body #grAuthPage .gr-auth-sub{
  margin-top: 6px;
  opacity: .9;
  font-size: 13px;
  font-weight: 600;
}

/* Body */
body #grAuthPage .gr-auth-body{
  padding: 22px;
  background: #fff;
}

/* Labels */
body #grAuthPage label{
  display: block;
  text-align: left !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: #1f2a44 !important;
}

/* Inputs */
body #grAuthPage .form-control{
  height: 46px;
  border-radius: 10px;
  border: 1px solid #dfe6f3;
  box-shadow: none !important;
}

body #grAuthPage .form-control:focus{
  border-color: #0b66ff;
  box-shadow: 0 0 0 3px rgba(11,102,255,.15) !important;
}

/* Buttons (comme modal : 50% desktop, 100% mobile) */
body #grAuthPage .btn{
  border-radius: 999px !important;
  height: 46px;
  font-weight: 800 !important;
}

/* Login */
body #grAuthPage #grLoginBtn{
  background: #0b66ff;
  border-color: #0b66ff;
  width: 50%;
  margin: 18px auto 0 auto;
  display: block;
}

/* Register */
body #grAuthPage #grRegisterBtn{
  background: #9bb451;
  border-color: #9bb451;
  width: 50%;
  margin: 18px auto 0 auto;
  display: block;
}

/* Links */
body #grAuthPage a,
body #grAuthPage a:hover,
body #grAuthPage a:focus{
  color: #0b66ff;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none !important;
}
body #grAuthPage a:hover{ opacity: .85; }

/* Info text */
body #grAuthPage small.text-muted{
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px){
  body #grAuthPage.gr-auth-page{ padding: 44px 12px; }
  body #grAuthPage .gr-auth-body{ padding: 16px; }
}

@media (max-width: 576px){
  body #grAuthPage #grLoginBtn,
  body #grAuthPage #grRegisterBtn{
    width: 100%;
  }
}

/* Toast (identique modal) */
.gr-toast{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999999;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.gr-toast.is-show{ opacity: 1; transform: translateY(0); }
.gr-toast.is-success{ background: #0f766e; }
.gr-toast.is-error{ background: #b91c1c; }

@media (max-width:576px){
  .gr-toast{
    top: 12px; right: 12px; left: 12px;
    max-width: none; min-width: auto;
  }
}
