/*
Theme Name: REGIUM ONE Enterprise
Theme URI: https://example.com/regium-one
Author: REGIUM ONE
Author URI: https://example.com
Description: Premium public website, role-based login and portal theme for the REGIUM ONE multi-company enterprise platform.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: regium-one
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, full-width-template, accessibility-ready, education, business, portal
*/

:root {
  --r1-navy: #08264b;
  --r1-navy-2: #061a35;
  --r1-navy-3: #0d3b72;
  --r1-blue: #1d5fae;
  --r1-blue-bright: #2876d2;
  --r1-gold: #d8a72d;
  --r1-gold-light: #f2cf73;
  --r1-gold-dark: #9c6c10;
  --r1-ink: #142033;
  --r1-muted: #68758a;
  --r1-line: #dfe6ef;
  --r1-bg: #f5f7fb;
  --r1-white: #ffffff;
  --r1-success: #15805d;
  --r1-danger: #b32635;
  --r1-radius: 18px;
  --r1-radius-lg: 28px;
  --r1-shadow: 0 18px 50px rgba(8, 38, 75, .10);
  --r1-shadow-lg: 0 34px 90px rgba(4, 21, 45, .22);
  --r1-max: 1280px;
  --r1-campus-image: url('assets/images/campus-hero.jpg');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--r1-ink);
  background: var(--r1-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--r1-blue); text-decoration: none; transition: .2s ease; }
a:hover { color: var(--r1-gold-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.2em; height: 1.2em; }

.r1-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999999;
  background: #fff;
  color: var(--r1-navy);
  padding: 12px 18px;
  border-radius: 8px;
}
.r1-skip-link:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.r1-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 24, 50, .94);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}
.admin-bar .r1-site-header { top: 32px; }
.r1-header-inner {
  width: min(100% - 40px, var(--r1-max));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.r1-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  color: #fff;
}
.r1-brand:hover { color: #fff; }
.r1-brand-crest { width: 50px; height: 58px; object-fit: contain; }
.r1-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.r1-brand-title { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; letter-spacing: .08em; }
.r1-brand-subtitle { margin-top: 6px; color: rgba(255,255,255,.64); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.r1-custom-logo img { max-height: 58px; width: auto; }
.r1-primary-nav { margin-left: auto; }
.r1-primary-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.r1-primary-nav a {
  display: inline-flex;
  padding: 10px 13px;
  border-radius: 10px;
  color: rgba(255,255,255,.83);
  font-size: 14px;
  font-weight: 650;
}
.r1-primary-nav a:hover,
.r1-primary-nav .current-menu-item > a { color: #fff; background: rgba(255,255,255,.09); }
.r1-header-actions { display: flex; align-items: center; gap: 10px; }
.r1-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 11px;
  cursor: pointer;
}
.r1-menu-toggle > span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; }

/* Buttons */
.r1-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  padding: 12px 21px;
  color: #fff;
  background: linear-gradient(135deg, var(--r1-navy-3), var(--r1-blue));
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(8, 38, 75, .18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.r1-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover { color: #fff; filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(8, 38, 75, .24); }
.r1-button svg { width: 18px; height: 18px; }
.r1-button--portal { background: linear-gradient(135deg, var(--r1-gold-light), var(--r1-gold)); color: #18233a; box-shadow: 0 10px 26px rgba(216,167,45,.23); }
.r1-button--portal:hover { color: #18233a; }
.r1-button--gold { background: linear-gradient(135deg, var(--r1-gold-light), var(--r1-gold)); color: #17213a; box-shadow: 0 14px 30px rgba(216,167,45,.28); }
.r1-button--gold:hover { color: #17213a; }
.r1-button--outline-light { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.34); box-shadow: none; }
.r1-button--outline-dark { color: var(--r1-navy); background: transparent; border: 1px solid rgba(8,38,75,.22); box-shadow: none; }
.r1-button--outline-dark:hover { color: var(--r1-navy); background: #fff; }

.r1-main { min-height: calc(100vh - 150px); }
.r1-container { width: min(100% - 40px, var(--r1-max)); margin: 0 auto; }
.r1-section { padding: 88px 0; }
.r1-section--white { background: #fff; }
.r1-section--navy { color: #fff; background: linear-gradient(135deg, #06172f, #0b376d); }
.r1-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--r1-gold-light); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.r1-kicker--dark { color: var(--r1-gold-dark); }
.r1-section-heading { max-width: 820px; margin-bottom: 38px; }
.r1-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.r1-section-heading h2,
.r1-security-layout h2,
.r1-cta-panel h2 { margin: 12px 0 14px; color: var(--r1-navy); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.r1-section-heading p { margin: 0; color: var(--r1-muted); font-size: 18px; }

/* Homepage hero */
.r1-home-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  color: #fff;
  background-image: var(--r1-campus-image);
  background-size: cover;
  background-position: center;
}
.r1-home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,18,39,.97) 0%, rgba(5,28,58,.88) 43%, rgba(6,32,65,.48) 74%, rgba(4,18,38,.62) 100%),
    linear-gradient(180deg, rgba(4,18,38,.04), rgba(3,18,39,.76));
}
.r1-home-hero:after {
  content: "";
  position: absolute;
  inset: auto -10% -95px -10%;
  height: 175px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 6px solid var(--r1-gold);
}
.r1-home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  align-items: center;
  gap: 72px;
  min-height: 620px;
  padding: 80px 0 40px;
}
.r1-home-hero-copy h1 {
  max-width: 780px;
  margin: 17px 0 22px;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}
.r1-home-hero-copy h1::first-line { color: #fff; }
.r1-home-hero-copy > p { max-width: 710px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 22px); }
.r1-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.r1-hero-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.r1-hero-trust-row span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 13px; }
.r1-hero-trust-row svg { color: var(--r1-gold-light); }

.r1-hero-access-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: rgba(5,22,46,.78);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}
.r1-access-panel-head { display: flex; align-items: center; gap: 14px; }
.r1-access-panel-head img { width: 54px; height: 64px; }
.r1-access-panel-head div { display: flex; flex-direction: column; line-height: 1.15; }
.r1-access-panel-head span { color: rgba(255,255,255,.6); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.r1-access-panel-head strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: .08em; }
.r1-hero-access-panel h2 { margin: 24px 0 7px; font-size: 28px; }
.r1-hero-access-panel > p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }
.r1-hero-portal-list { display: grid; gap: 9px; margin-top: 20px; }
.r1-hero-portal-list a {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
}
.r1-hero-portal-list a:hover { background: rgba(255,255,255,.11); border-color: rgba(216,167,45,.55); }
.r1-hero-portal-list a > span { display: grid; place-items: center; width: 36px; height: 36px; color: var(--r1-gold-light); border-radius: 10px; background: rgba(216,167,45,.1); }
.r1-hero-portal-list a > svg { color: rgba(255,255,255,.55); }
.r1-access-panel-main { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; padding: 13px; color: #1a253b; font-weight: 780; border-radius: 12px; background: linear-gradient(135deg, var(--r1-gold-light), var(--r1-gold)); }
.r1-access-panel-main:hover { color: #1a253b; transform: translateY(-1px); }
.r1-hero-domain-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: -12px;
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(4,22,47,.76);
  backdrop-filter: blur(18px);
}
.r1-hero-domain-strip > div { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: center; padding: 5px 18px; border-right: 1px solid rgba(255,255,255,.12); }
.r1-hero-domain-strip > div:last-child { border-right: 0; }
.r1-hero-domain-strip span { grid-row: 1 / 3; display: grid; place-items: center; color: var(--r1-gold-light); }
.r1-hero-domain-strip span svg { width: 30px; height: 30px; }
.r1-hero-domain-strip strong { font-size: 14px; }
.r1-hero-domain-strip small { color: rgba(255,255,255,.58); font-size: 11px; }

/* Solution and portal cards */
.r1-solutions-section { padding-top: 120px; }
.r1-solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.r1-solution-card,
.r1-portal-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--r1-line);
  border-radius: var(--r1-radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(8,38,75,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.r1-solution-card:hover,
.r1-portal-card:hover { transform: translateY(-5px); border-color: rgba(216,167,45,.52); box-shadow: var(--r1-shadow); }
.r1-solution-icon,
.r1-portal-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--r1-navy-3);
  border-radius: 15px;
  background: linear-gradient(145deg, #f8eac0, #fff8e6);
}
.r1-solution-icon svg,
.r1-portal-card-icon svg { width: 26px; height: 26px; }
.r1-solution-card h3,
.r1-portal-card h3 { margin: 18px 0 9px; color: var(--r1-navy); font-size: 21px; }
.r1-solution-card p,
.r1-portal-card p { margin: 0; color: var(--r1-muted); }
.r1-portal-section { background: linear-gradient(180deg,#f5f7fb,#edf2f8); }
.r1-portal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.r1-portal-card { display: flex; flex-direction: column; min-height: 320px; padding: 24px; }
.r1-portal-card p { flex: 1; font-size: 14px; }
.r1-portal-card > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--r1-navy-3); font-weight: 780; }
.r1-portal-card > a svg { width: 17px; height: 17px; }

/* Security */
.r1-security-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.r1-security-layout h2 { color: #fff; }
.r1-security-layout > div:first-child > p { color: rgba(255,255,255,.7); font-size: 18px; }
.r1-security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.r1-security-grid > div { padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.055); }
.r1-security-grid span { display: grid; place-items: center; width: 44px; height: 44px; color: var(--r1-gold-light); border-radius: 12px; background: rgba(216,167,45,.1); }
.r1-security-grid strong { display: block; margin-top: 16px; }
.r1-security-grid p { margin: 6px 0 0; color: rgba(255,255,255,.62); font-size: 13px; }

/* CTA */
.r1-cta-section { background: #fff; }
.r1-cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px 46px; border: 1px solid var(--r1-line); border-radius: 24px; background: linear-gradient(135deg,#f8fafc,#eef3f9); box-shadow: var(--r1-shadow); }
.r1-cta-panel h2 { max-width: 820px; margin-bottom: 0; font-size: clamp(28px,3.7vw,44px); }
.r1-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* Generic page and content */
.r1-content-shell { padding: 42px 0 66px; }
.r1-entry { background: #fff; border: 1px solid var(--r1-line); border-radius: var(--r1-radius); box-shadow: var(--r1-shadow); padding: clamp(24px,4vw,48px); }
.r1-entry-title { color: var(--r1-navy); margin: 0 0 18px; font-size: clamp(30px,4vw,48px); line-height: 1.15; }
.r1-entry-content > *:first-child { margin-top: 0; }
.r1-entry-content > *:last-child { margin-bottom: 0; }
.r1-notice { margin: 20px 0; padding: 16px 18px; border-radius: 12px; border-left: 4px solid var(--r1-blue); background: #eef7ff; }
.r1-notice--warning { border-left-color: #b7791f; background: #fff8e6; }

/* Inner page hero */
.r1-page-hero { position: relative; overflow: hidden; padding: 92px 0 76px; color: #fff; background: linear-gradient(135deg,#06172f,#0b376d); }
.r1-page-hero:after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 82% 20%,rgba(216,167,45,.2),transparent 25%),linear-gradient(110deg,transparent 45%,rgba(255,255,255,.04)); }
.r1-page-hero .r1-container { position: relative; z-index: 2; }
.r1-page-hero h1 { max-width: 900px; margin: 13px 0 14px; font-size: clamp(42px,5vw,64px); line-height: 1.03; letter-spacing: -.045em; }
.r1-page-hero p { max-width: 800px; margin: 0; color: rgba(255,255,255,.72); font-size: 18px; }

/* My Portal */
.r1-portal-hub-section { background: #f5f7fb; }
.r1-primary-portal-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 44px; padding: 32px; color: #fff; border-radius: 22px; background: linear-gradient(135deg,#071b37,#0c4487); box-shadow: var(--r1-shadow); }
.r1-primary-portal-banner span { color: var(--r1-gold-light); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.r1-primary-portal-banner h2 { margin: 6px 0 4px; font-size: 30px; }
.r1-primary-portal-banner p { margin: 0; color: rgba(255,255,255,.68); }
.r1-portal-grid--hub { grid-template-columns: repeat(5, 1fr); }
.r1-portal-utility-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 28px; }
.r1-portal-utility-grid a { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 20px; color: var(--r1-ink); border: 1px solid var(--r1-line); border-radius: 16px; background: #fff; }
.r1-portal-utility-grid a:hover { transform: translateY(-3px); box-shadow: var(--r1-shadow); }
.r1-portal-utility-grid span { grid-row: 1/3; display: grid; place-items: center; width: 44px; height: 44px; color: var(--r1-navy-3); border-radius: 12px; background: #edf4fc; }
.r1-portal-utility-grid strong { color: var(--r1-navy); }
.r1-portal-utility-grid small { color: var(--r1-muted); }

/* Access request */
.r1-access-section { background: #f5f7fb; }
.r1-access-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr); gap: 28px; align-items: start; }
.r1-access-form-card,
.r1-access-info-card { padding: 34px; border: 1px solid var(--r1-line); border-radius: 22px; background: #fff; box-shadow: var(--r1-shadow); }
.r1-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-bottom: 22px; }
.r1-form-grid label { display: grid; gap: 7px; color: var(--r1-navy); font-weight: 720; }
.r1-form-grid input,
.r1-form-grid select,
.r1-form-grid textarea { width: 100%; min-height: 48px; border: 1px solid #d7e0ea; border-radius: 11px; padding: 11px 13px; color: var(--r1-ink); background: #fff; outline: none; }
.r1-form-grid textarea { min-height: 120px; resize: vertical; }
.r1-form-grid input:focus,
.r1-form-grid select:focus,
.r1-form-grid textarea:focus { border-color: var(--r1-blue-bright); box-shadow: 0 0 0 3px rgba(40,118,210,.12); }
.r1-form-span { grid-column: 1/-1; }
.r1-access-info-card h2 { margin: 18px 0 10px; color: var(--r1-navy); }
.r1-access-info-card ol { padding-left: 22px; color: var(--r1-muted); }
.r1-access-info-card li { margin-bottom: 12px; }
.r1-access-info-card > p { margin-bottom: 0; padding: 14px; color: #76541a; border-radius: 10px; background: #fff6dc; }
.r1-form-notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 11px; }
.r1-form-notice--success { color: #0d6247; background: #e9f7f1; }
.r1-form-notice--error { color: #8a2631; background: #fdeff1; }

/* Premium login */
body.r1-premium-login-page { min-height: 100vh; overflow-x: hidden; background: #06152d; }
body.r1-premium-login-page.admin-bar { padding-top: 32px; }
.r1-premium-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(520px,.92fr); }
.r1-login-brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; padding: 42px 54px 30px; color: #fff; background-image: var(--r1-campus-image); background-size: cover; background-position: center; }
.r1-login-brand-overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(3,18,39,.96),rgba(4,27,57,.78) 64%,rgba(4,22,47,.48)),linear-gradient(180deg,rgba(4,22,47,.18),rgba(3,18,39,.94)); }
.r1-login-home-link,
.r1-login-brand-copy,
.r1-login-brand-footer { position: relative; z-index: 2; }
.r1-login-home-link { display: flex; align-items: center; gap: 13px; color: #fff; }
.r1-login-home-link:hover { color: #fff; }
.r1-login-home-link img { width: 58px; height: 68px; }
.r1-login-home-link span { font-family: Georgia,"Times New Roman",serif; font-size: 27px; font-weight: 700; letter-spacing: .08em; }
.r1-login-brand-copy { max-width: 720px; margin: auto 0; padding: 72px 0; }
.r1-login-context-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--r1-gold-light); border: 1px solid rgba(216,167,45,.42); border-radius: 16px; background: rgba(216,167,45,.09); }
.r1-login-context-icon svg { width: 30px; height: 30px; }
.r1-login-brand-copy h1 { max-width: 760px; margin: 21px 0 17px; font-size: clamp(44px,5vw,70px); line-height: 1.02; letter-spacing: -.05em; }
.r1-login-brand-copy > p { max-width: 670px; margin: 0; color: rgba(255,255,255,.75); font-size: 19px; }
.r1-login-domain-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; margin-top: 42px; }
.r1-login-domain-row > span { display: grid; place-items: center; gap: 7px; padding: 14px 5px; color: var(--r1-gold-light); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.045); }
.r1-login-domain-row svg { width: 25px; height: 25px; }
.r1-login-domain-row small { color: rgba(255,255,255,.7); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.r1-login-brand-footer { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11); }
.r1-login-brand-footer span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.66); font-size: 12px; }
.r1-login-brand-footer svg { color: var(--r1-gold-light); }
.r1-login-form-panel { display: grid; place-items: center; min-height: 100vh; padding: 40px; background: radial-gradient(circle at 90% 0,rgba(40,118,210,.08),transparent 24%),#f5f7fb; }
.r1-login-form-card { width: min(100%,560px); padding: 46px 50px; border: 1px solid #e1e7ef; border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: var(--r1-shadow-lg); }
.r1-login-mobile-brand { display: none; align-items: center; gap: 8px; color: var(--r1-navy); }
.r1-login-mobile-brand img { width: 38px; height: 46px; }
.r1-login-mobile-brand span { font-family: Georgia,"Times New Roman",serif; font-weight: 700; letter-spacing: .06em; }
.r1-login-form-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 15px; color: var(--r1-gold-dark); border-radius: 15px; background: #fff6dc; }
.r1-login-form-icon svg { width: 26px; height: 26px; }
.r1-login-form-card h2 { margin: 0; color: var(--r1-navy); text-align: center; font-size: clamp(32px,4vw,44px); line-height: 1.1; }
.r1-login-form-card > p { max-width: 450px; margin: 10px auto 0; color: var(--r1-muted); text-align: center; }
.r1-login-rule { position: relative; display: grid; place-items: center; margin: 23px 0 26px; color: var(--r1-gold); }
.r1-login-rule:before,
.r1-login-rule:after { content:""; position:absolute; top:50%; width:41%; height:1px; background:#e4c269; }
.r1-login-rule:before { left:0; }
.r1-login-rule:after { right:0; }
.r1-login-rule span { position: relative; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e7bf55; border-radius: 50%; background: #fff; }
.r1-login-alert { margin-bottom: 18px; padding: 12px 14px; color: #8b2633; border-radius: 10px; background: #fdeff1; }
.r1-premium-login-form > label,
.r1-login-label-row label { display: block; margin-bottom: 7px; color: var(--r1-navy); font-weight: 740; }
.r1-login-label-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 19px; }
.r1-login-label-row a { font-size: 13px; font-weight: 650; }
.r1-login-field { position: relative; display: flex; align-items: center; }
.r1-login-field input { width: 100%; min-height: 58px; border: 1px solid #d8e0e9; border-radius: 11px; padding: 12px 48px 12px 48px; color: var(--r1-ink); background: #fff; outline: none; box-shadow: 0 5px 16px rgba(8,38,75,.03); }
.r1-login-field input:focus { border-color: var(--r1-blue-bright); box-shadow: 0 0 0 3px rgba(40,118,210,.11); }
.r1-login-field-icon { position: absolute; left: 16px; z-index: 2; display: grid; color: #738099; pointer-events: none; }
.r1-login-field-icon svg { width: 20px; height: 20px; }
.r1-password-toggle { position: absolute; right: 10px; width: 36px; height: 36px; padding: 0; color: #758299; border: 0; background: transparent; box-shadow: none; }
.r1-password-toggle:hover { color: var(--r1-navy); transform: none; box-shadow: none; }
.r1-remember { display: flex !important; align-items: center; gap: 9px; margin: 19px 0 !important; color: var(--r1-ink) !important; font-weight: 500 !important; }
.r1-remember input { width: 18px; height: 18px; accent-color: var(--r1-navy-3); }
.r1-login-submit { width: 100%; min-height: 56px; font-size: 17px; background: linear-gradient(90deg,#0b3d7d,#154f9d); }
.r1-login-submit span { flex: 1; }
.r1-login-divider { position: relative; margin: 24px 0; text-align: center; }
.r1-login-divider:before { content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:#e3e8ef; }
.r1-login-divider span { position:relative; z-index:2; padding:0 12px; color:#8a95a7; background:#fff; text-transform:uppercase; font-size:11px; letter-spacing:.1em; }
.r1-sso-button { display:flex; align-items:center; justify-content:center; gap:10px; min-height:52px; color:var(--r1-ink); border:1px solid #dce3eb; border-radius:11px; background:#fff; font-weight:650; }
.r1-ms-mark { display:grid; grid-template-columns:repeat(2,8px); gap:2px; }
.r1-ms-mark i { width:8px; height:8px; background:#f25022; }
.r1-ms-mark i:nth-child(2){background:#7fba00}.r1-ms-mark i:nth-child(3){background:#00a4ef}.r1-ms-mark i:nth-child(4){background:#ffb900}
.r1-login-help-row,
.r1-login-switch-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 24px; color: var(--r1-muted); font-size: 13px; }
.r1-login-switch-row { margin-top: 10px; }
.r1-login-help-row a,
.r1-login-switch-row a { font-weight: 700; }

/* Portal plugin compatibility */
.r1-portal-shell,
.r1-sms-portal,
.r1-wm-portal,
.r1-ess-shell { max-width: var(--r1-max); margin: 0 auto; }
.r1-portal-header,
.r1-sms-portal-hero { border-radius: 20px; }
.r1-portal-nav { border-radius: 14px; }

/* Footer */
.r1-site-footer { color: rgba(255,255,255,.72); background: #06172f; }
.r1-footer-main { display: grid; grid-template-columns: 1.8fr repeat(3,1fr); gap: 44px; padding: 54px 0 46px; }
.r1-footer-brand { display: flex; align-items: flex-start; gap: 15px; }
.r1-footer-brand img { width: 62px; height: 72px; }
.r1-footer-brand strong { display:block; color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:24px; letter-spacing:.08em; }
.r1-footer-brand p { max-width:320px; margin:7px 0 0; color:rgba(255,255,255,.57); }
.r1-footer-main h3 { margin:0 0 14px; color:#fff; font-size:14px; text-transform:uppercase; letter-spacing:.09em; }
.r1-footer-main > div:not(.r1-footer-brand) { display:flex; flex-direction:column; gap:8px; }
.r1-footer-main a,
.r1-footer-main span { color:rgba(255,255,255,.66); font-size:14px; }
.r1-footer-main a:hover { color:var(--r1-gold-light); }
.r1-footer-bottom { border-top:1px solid rgba(255,255,255,.09); }
.r1-footer-bottom .r1-container { display:flex; justify-content:space-between; gap:20px; padding:18px 0; color:rgba(255,255,255,.48); font-size:12px; }

/* Responsive */
@media (max-width: 1180px) {
  .r1-home-hero-inner { grid-template-columns: minmax(0,1fr) 390px; gap: 38px; }
  .r1-portal-grid,
  .r1-portal-grid--hub { grid-template-columns: repeat(3,1fr); }
  .r1-footer-main { grid-template-columns: 1.4fr repeat(3,1fr); gap: 26px; }
}
@media (max-width: 980px) {
  .admin-bar .r1-site-header { top: 46px; }
  .r1-menu-toggle { display: block; }
  .r1-primary-nav { display:none; position:absolute; left:20px; right:20px; top:76px; padding:12px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:#071b37; box-shadow:var(--r1-shadow-lg); }
  .r1-primary-nav.is-open { display:block; }
  .r1-primary-nav ul { flex-direction:column; align-items:stretch; }
  .r1-primary-nav a { display:flex; }
  .r1-header-actions { margin-left:auto; }
  .r1-home-hero { min-height:auto; }
  .r1-home-hero-inner { grid-template-columns:1fr; min-height:auto; padding:72px 0 30px; }
  .r1-hero-access-panel { max-width:620px; }
  .r1-hero-domain-strip { grid-template-columns:repeat(3,1fr); gap:8px; }
  .r1-hero-domain-strip > div { border-right:0; border-bottom:1px solid rgba(255,255,255,.08); }
  .r1-solution-grid { grid-template-columns:repeat(2,1fr); }
  .r1-security-layout { grid-template-columns:1fr; gap:36px; }
  .r1-cta-panel { align-items:flex-start; flex-direction:column; }
  .r1-portal-utility-grid { grid-template-columns:repeat(2,1fr); }
  .r1-access-layout { grid-template-columns:1fr; }
  .r1-premium-login-shell { grid-template-columns:1fr; }
  .r1-login-brand-panel { min-height:520px; }
  .r1-login-form-panel { min-height:auto; padding:46px 22px 70px; }
  .r1-footer-main { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 720px) {
  .r1-container { width:min(100% - 28px,var(--r1-max)); }
  .r1-header-inner { width:min(100% - 24px,var(--r1-max)); min-height:72px; }
  .r1-brand { min-width:0; }
  .r1-brand-crest { width:41px; height:48px; }
  .r1-brand-title { font-size:17px; }
  .r1-brand-subtitle { display:none; }
  .r1-header-actions .r1-button--portal { padding:10px 13px; font-size:0; }
  .r1-header-actions .r1-button--portal svg { width:21px; height:21px; }
  .r1-section { padding:68px 0; }
  .r1-home-hero:after { height:120px; bottom:-73px; }
  .r1-home-hero-copy h1 { font-size:clamp(42px,13vw,64px); }
  .r1-home-hero-inner { padding-top:58px; }
  .r1-hero-domain-strip { grid-template-columns:1fr; padding:15px; }
  .r1-hero-domain-strip > div { grid-template-columns:40px 1fr; }
  .r1-solutions-section { padding-top:98px; }
  .r1-solution-grid,
  .r1-portal-grid,
  .r1-portal-grid--hub,
  .r1-security-grid,
  .r1-portal-utility-grid { grid-template-columns:1fr; }
  .r1-portal-card { min-height:0; }
  .r1-primary-portal-banner { align-items:flex-start; flex-direction:column; }
  .r1-form-grid { grid-template-columns:1fr; }
  .r1-form-span { grid-column:auto; }
  .r1-access-form-card,
  .r1-access-info-card { padding:24px; }
  .r1-login-brand-panel { min-height:460px; padding:28px 24px 24px; }
  .r1-login-home-link img { width:44px; height:52px; }
  .r1-login-home-link span { font-size:20px; }
  .r1-login-brand-copy { padding:50px 0 24px; }
  .r1-login-brand-copy h1 { font-size:clamp(38px,12vw,56px); }
  .r1-login-brand-copy > p { font-size:16px; }
  .r1-login-domain-row { grid-template-columns:repeat(3,1fr); margin-top:28px; }
  .r1-login-domain-row > span:nth-child(n+4) { display:none; }
  .r1-login-brand-footer { gap:11px; }
  .r1-login-form-panel { padding:32px 14px 50px; }
  .r1-login-form-card { padding:31px 22px; border-radius:20px; }
  .r1-login-mobile-brand { display:flex; margin-bottom:24px; }
  .r1-login-label-row { align-items:flex-start; flex-direction:column; gap:2px; }
  .r1-login-field input { min-height:54px; }
  .r1-footer-main { grid-template-columns:1fr; padding:42px 0; }
  .r1-footer-bottom .r1-container { flex-direction:column; }
}
@media (max-width: 480px) {
  .r1-hero-actions,
  .r1-cta-actions { flex-direction:column; align-items:stretch; }
  .r1-button { width:100%; }
  .r1-hero-access-panel { padding:20px; }
  .r1-login-domain-row { display:none; }
  .r1-login-brand-panel { min-height:390px; }
  .r1-login-brand-footer span { font-size:10px; }
}
