*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Barlow', sans-serif;
  background: #1a1f2e;
}

/* ── LAYOUT ── */
.rr-wrap {
  min-height: 100vh;
  display: flex;
}

/* ── LEFT BRAND PANEL ── */
.rr-left {
  flex: 1;
  background: #1a1f2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.rr-left::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: #c0392b;
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}

.rr-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 300px; height: 300px;
  background: #c0392b;
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.rr-brand { text-align: center; z-index: 1; }

.rr-app-icon {
  width: 96px; height: 96px;
  background: #ffffff;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.rr-app-icon img { width: 72px; height: 72px; object-fit: contain; }

.rr-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px; font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}

.rr-brand-sub {
  font-size: 12px; color: #c0392b;
  letter-spacing: 3px; text-transform: uppercase;
  margin-top: 6px; font-weight: 600;
}

.rr-tagline {
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 14px; line-height: 1.7;
  text-align: center; max-width: 240px;
}

.rr-badges {
  display: flex; gap: 10px;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rr-badge {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
}

/* ── RIGHT LOGIN PANEL ── */
.rr-right {
  width: 420px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem;
}

.rr-login-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 700;
  color: #1a1f2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.rr-login-sub { font-size: 14px; color: #888; margin-bottom: 2rem; }

/* ── FORM ── */
.rr-field { margin-bottom: 1rem; }

.rr-label {
  font-size: 11px; font-weight: 600;
  color: #555; letter-spacing: 1px;
  text-transform: uppercase;
  display: block; margin-bottom: 6px;
}

.rr-input {
  width: 100%; height: 46px;
  border: 1px solid #ddd; border-radius: 8px;
  padding: 0 14px;
  font-size: 14px; font-family: 'Barlow', sans-serif;
  color: #1a1f2e; background: #f9f9f9;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}

.rr-input:focus {
  border-color: #c0392b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

.rr-forgot { text-align: right; margin-top: -4px; margin-bottom: 1.5rem; }
.rr-forgot a { font-size: 12px; color: #c0392b; text-decoration: none; font-weight: 500; }
.rr-forgot a:hover { text-decoration: underline; }

.rr-btn {
  width: 100%; height: 48px;
  background: #c0392b; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.rr-btn:hover { background: #a93226; }
.rr-btn:active { transform: scale(0.99); }
.rr-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ── ERROR MSG ── */
.error-msg {
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  color: #c0392b;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 1rem;
}

/* ── INSTALL BANNER ── */
.rr-install-banner {
  margin-top: 1.5rem;
  background: #1a1f2e;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}

.rr-install-icon {
  width: 38px; height: 38px;
  background: #fff; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rr-install-icon img { width: 29px; height: 29px; object-fit: contain; }

.rr-install-text { flex: 1; }
.rr-install-text p { font-size: 11px; font-weight: 600; color: #fff; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.rr-install-text span { font-size: 11px; color: rgba(255,255,255,0.45); }

.rr-install-btn {
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 6px; color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 6px 12px; cursor: pointer;
  white-space: nowrap;
  font-family: 'Barlow', sans-serif;
  transition: background 0.2s;
}

.rr-install-btn:hover { background: rgba(255,255,255,0.2); }

.rr-footer {
  margin-top: 2rem;
  font-size: 11px; color: #ccc;
  text-align: center; line-height: 1.6;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}

.modal {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  width: 360px;
  max-width: 90vw;
}

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #1a1f2e; text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-sub { font-size: 13px; color: #888; margin-bottom: 1.25rem; }

.modal-close {
  display: block; width: 100%; margin-top: 0.75rem;
  background: none; border: none;
  color: #aaa; font-size: 13px; cursor: pointer;
  font-family: 'Barlow', sans-serif;
}

.modal-close:hover { color: #555; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rr-wrap { flex-direction: column; }
  .rr-left { min-height: 260px; padding: 2rem; }
  .rr-left::before, .rr-left::after { display: none; }
  .rr-tagline, .rr-badges { display: none; }
  .rr-right { width: 100%; padding: 2rem 1.5rem; }
}
