/* /public_html/assets/css/auth.css */
:root{
  --rr-bg0:#070a10;
  --rr-bg1:#0b1220;
  --rr-text:rgba(255,255,255,.92);
  --rr-muted:rgba(255,255,255,.70);
  --rr-border:rgba(255,255,255,.10);
  --rr-soft:rgba(255,255,255,.06);
  --rr-soft2:rgba(0,0,0,.22);
  --rr-focus:rgba(99,102,241,.55);
}

/* Layout */
.rr-auth{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background:
    radial-gradient(900px 600px at 18% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(900px 600px at 90% 40%, rgba(168,85,247,.14), transparent 60%),
    linear-gradient(180deg, var(--rr-bg1) 0%, var(--rr-bg0) 100%);
}

/* Left/Side panel */
.rr-auth-side{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 3vw, 48px);
}
.rr-auth-side-inner{
  width: min(520px, 100%);
  color: var(--rr-text);
}
.rr-auth-kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--rr-soft);
  border: 1px solid var(--rr-border);
  color: rgba(255,255,255,.82);
  margin-bottom: 14px;
  font-size: 13px;
}
.rr-auth-side-inner h2{
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 10px;
}
.rr-auth-side-inner p{
  margin: 0 0 18px;
  color: var(--rr-muted);
  font-size: 15px;
}
.rr-auth-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rr-badge{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.84);
}

/* Right: main card area */
.rr-auth-main{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 3vw, 48px);
}
.rr-auth-card{
  width: min(520px, 100%);
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--rr-soft);
  border: 1px solid var(--rr-border);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
}

/* Brand */
.rr-auth-brand{
  display:flex;
  gap: 12px;
  align-items:center;
  text-decoration:none;
  color: inherit;
  margin-bottom: 14px;
}
.rr-auth-brand img{
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.rr-auth-brand-name{
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 14px;
  color: var(--rr-text);
}
.rr-auth-brand-sub{
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* Head */
.rr-auth-head h1{
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 8px 0 6px;
  color: var(--rr-text);
}
.rr-auth-head p{
  margin: 0 0 18px;
  color: var(--rr-muted);
}

/* Alerts */
.rr-alert{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 14px;
  margin: 10px 0;
  font-size: 13px;
}
.rr-alert i{ margin-top: 2px; }
.rr-alert-err{
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: rgba(255,255,255,.92);
}
.rr-alert-ok{
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: rgba(255,255,255,.92);
}

/* Form */
.rr-form{ margin-top: 12px; }
.rr-field{ margin-bottom: 12px; }
.rr-field label{
  display:block;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.rr-input-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 12px;
  background: var(--rr-soft2);
  border: 1px solid var(--rr-border);
}
.rr-input-wrap:focus-within{
  border-color: var(--rr-focus);
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.rr-input-wrap i{
  color: rgba(255,255,255,.60);
  font-size: 16px;
}

.rr-input{
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--rr-text);
  font-size: 14px;
}
.rr-input::placeholder{ color: rgba(255,255,255,.40); }

.rr-eye{
  border:none;
  background: transparent;
  color: rgba(255,255,255,.60);
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.rr-eye:hover{ background: rgba(255,255,255,.06); }

.rr-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
  flex-wrap: wrap; /* important for small screens */
}
.rr-check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.rr-check input{ transform: translateY(1px); }

.rr-link{
  font-size: 12px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
}
.rr-link:hover{ text-decoration: underline; }

/* Button */
.rr-btn{
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px 14px; /* slightly bigger for tap */
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(168,85,247,.95));
  color: white;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  box-shadow: 0 14px 40px rgba(99,102,241,.20);
}
.rr-btn:hover{ filter: brightness(1.03); }
.rr-btn:active{ transform: translateY(1px); }

.rr-auth-foot{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  display:flex;
  gap: 6px;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
}
.rr-muted{ color: rgba(255,255,255,.60); }

/* ========= Breakpoints ========= */

/* Large screens: keep two columns but give form priority */
@media (max-width: 1200px){
  .rr-auth{ grid-template-columns: 1fr 1.15fr; }
}

/* Tablet: stack into 1 column with side banner on top */
@media (max-width: 992px){
  .rr-auth{
    grid-template-columns: 1fr;
  }

  .rr-auth-side{
    order: 1;
    padding-bottom: 0;
  }

  .rr-auth-main{
    order: 2;
    padding-top: 10px;
  }

  .rr-auth-side-inner{
    max-width: 720px;
  }

  .rr-auth-side-inner h2{
    font-size: clamp(24px, 5vw, 34px);
  }

  .rr-auth-badges{
    display:none; /* optional: keeps it clean on mobile/tablet */
  }
}

/* Small phones: tighter padding, bigger fields */
@media (max-width: 768px){
  .rr-auth-side-inner p{ font-size: 14px; }
  .rr-input-wrap{ padding: 13px 12px; }
  .rr-input{ font-size: 16px; } /* prevents iOS zoom */
}

/* Extra small: reduce card radius a bit and keep safe padding */
@media (max-width: 480px){
  .rr-auth-card{ border-radius: 18px; }
  .rr-auth-brand-name{ letter-spacing: .14em; }
}
