/* ════════════════════════════════════════════════════════════════════
   Student Registration — field-guide split-screen   (#rg-root)
   Restyles the [tutor_student_registration_form] in place; scoped so the
   dashboard's own Tutor forms are never affected.
   ════════════════════════════════════════════════════════════════════ */
#rg-root{
	--g-deep:#123f2d; --g:#1d6b4f; --g-soft:#2f8a67; --mint:#9fe0c0;
	--clay:#bd6a36; --clay-dk:#9a5125;
	--ink:#1a1c16; --ink-2:#33372c; --muted:#6a6f60; --faint:#9a9e8d;
	--bone:#f1ece0; --paper:#fffdf8; --cream:#f3eee2;
	--line:#e6e0d2; --line-2:#efeadd;
	--ease:cubic-bezier(.22,.61,.36,1);
	position:relative;min-height:calc(100vh - 90px);
	display:flex;align-items:center;justify-content:center;padding:54px 24px;
	font-family:"Hanken Grotesk",system-ui,-apple-system,sans-serif;color:var(--ink);
	background:
		radial-gradient(900px 520px at 12% 0%,#efe8d8 0%,transparent 60%),
		radial-gradient(900px 600px at 100% 100%,#e7f0e6 0%,transparent 55%),
		var(--bone);
	overflow:hidden;
}
#rg-root *{box-sizing:border-box;}
.rg-grain{position:absolute;inset:0;pointer-events:none;opacity:.5;mix-blend-mode:multiply;z-index:0;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");}

/* ── Shell (wider than login to fit the 2-col form) ── */
.rg-shell{position:relative;z-index:1;width:100%;max-width:1140px;
	display:grid;grid-template-columns:.86fr 1.14fr;
	background:var(--paper);border:1px solid var(--line);border-radius:26px;overflow:hidden;
	box-shadow:0 50px 120px -50px rgba(18,63,45,.55),0 8px 30px -18px rgba(18,63,45,.25);
	animation:rg-rise .7s var(--ease) both;}
@keyframes rg-rise{from{opacity:0;transform:translateY(22px) scale(.99);}to{opacity:1;transform:none;}}

/* ── Aside ── */
.rg-aside{position:relative;overflow:hidden;padding:40px 40px 34px;color:#fff;display:flex;flex-direction:column;
	background:radial-gradient(120% 80% at 0% 0%,#1a5239 0%,transparent 55%),linear-gradient(158deg,#0c1f15 0%,#123f2d 52%,#0e3324 100%);}
.rg-aside-glow{position:absolute;top:-160px;right:-120px;width:420px;height:420px;border-radius:50%;
	background:radial-gradient(circle,rgba(47,138,103,.42) 0%,transparent 62%);pointer-events:none;animation:rg-pulse 7s ease-in-out infinite;}
@keyframes rg-pulse{0%,100%{transform:scale(1);opacity:.85;}50%{transform:scale(1.12);opacity:1;}}
.rg-helix{position:absolute;top:0;right:-18px;height:100%;width:120px;opacity:.55;pointer-events:none;animation:rg-drift 14s ease-in-out infinite;}
@keyframes rg-drift{0%,100%{transform:translateY(0);}50%{transform:translateY(-14px);}}

.rg-brand{position:relative;z-index:2;display:inline-flex;align-items:center;gap:11px;text-decoration:none;align-self:flex-start;animation:rg-fade .6s var(--ease) .15s both;}
.rg-brand-mark{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:1.35rem;color:var(--g-deep);background:var(--mint);box-shadow:0 6px 18px -6px rgba(159,224,192,.7);}
.rg-brand-name{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:1.32rem;color:#fff;}

.rg-aside-body{position:relative;z-index:2;margin-top:auto;padding-top:38px;}
.rg-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:.7rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--mint);margin-bottom:16px;animation:rg-fade .6s var(--ease) .25s both;}
.rg-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px rgba(159,224,192,.18);}
.rg-aside-title{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:clamp(28px,3.3vw,42px);line-height:1.05;letter-spacing:-.015em;margin:0 0 16px;color:#fff;animation:rg-fade .6s var(--ease) .32s both;}
.rg-aside-title em{font-style:italic;color:var(--mint);}
.rg-aside-sub{font-size:.96rem;line-height:1.62;color:rgba(255,255,255,.74);max-width:320px;margin:0 0 26px;animation:rg-fade .6s var(--ease) .4s both;}
.rg-aside-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px;animation:rg-fade .6s var(--ease) .48s both;}
.rg-aside-list li{display:flex;align-items:center;gap:12px;font-size:.9rem;font-weight:500;color:rgba(255,255,255,.9);}
.rg-aside-list svg{flex:0 0 auto;width:18px;height:18px;color:var(--mint);background:rgba(159,224,192,.14);border-radius:50%;padding:3px;}

.rg-aside-foot{position:relative;z-index:2;display:flex;margin-top:34px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);animation:rg-fade .6s var(--ease) .56s both;}
.rg-stat{flex:1;display:flex;flex-direction:column;gap:2px;}
.rg-stat + .rg-stat{padding-left:18px;margin-left:18px;border-left:1px solid rgba(255,255,255,.12);}
.rg-stat-n{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:1.5rem;color:#fff;line-height:1;}
.rg-stat-l{font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.6);}
@keyframes rg-fade{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:none;}}

/* ── Panel ── */
.rg-panel{background:var(--paper);display:flex;align-items:center;justify-content:center;padding:44px 46px;}
.rg-panel-inner{width:100%;max-width:480px;animation:rg-fade .6s var(--ease) .3s both;}
.rg-head{margin:0 0 22px;}
.rg-h2{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:1.7rem;line-height:1.15;letter-spacing:-.01em;margin:0 0 7px;color:var(--ink);}
.rg-head-sub{font-size:.92rem;color:var(--muted);margin:0;}
.rg-head-sub a{color:var(--g);font-weight:700;text-decoration:none;border-bottom:1.5px solid rgba(29,107,79,.28);padding-bottom:1px;transition:border-color .18s var(--ease);}
.rg-head-sub a:hover{border-color:var(--g);}

/* ── Tutor form host: neutralise chrome ── */
.rg-form-host #tutor-registration-wrap{all:unset;display:block;width:100%;}
.rg-form-host #tutor-registration-form{display:block;width:100%;}

/* Rows / columns → responsive grid */
.rg-form-host .tutor-form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0 0 4px;}
.rg-form-host .tutor-form-col-6{min-width:0;}
.rg-form-host .tutor-form-col-12{grid-column:1 / -1;min-width:0;}
.rg-form-host .tutor-form-group{margin:0 0 14px;}

/* Labels */
.rg-form-host .tutor-form-group > label,
.rg-form-host .tutor-password-field > label{
	display:block;font-size:.78rem;font-weight:700;color:var(--ink-2);margin:0 0 6px;letter-spacing:.01em;
}

/* Inputs */
.rg-form-host #tutor-registration-form input[type="text"],
.rg-form-host #tutor-registration-form input[type="email"],
.rg-form-host #tutor-registration-form input[type="password"]{
	width:100%;height:50px;padding:0 15px;border:1.5px solid var(--line);border-radius:12px;background:#fff;
	color:var(--ink);font-family:inherit;font-size:.95rem;
	transition:border-color .2s var(--ease),box-shadow .2s var(--ease);box-shadow:none;margin:0;
}
.rg-form-host #tutor-registration-form input::placeholder{color:var(--faint);}
.rg-form-host #tutor-registration-form input[type="text"]:focus,
.rg-form-host #tutor-registration-form input[type="email"]:focus,
.rg-form-host #tutor-registration-form input[type="password"]:focus{
	outline:none;border-color:var(--g-soft);box-shadow:0 0 0 4px rgba(47,138,103,.14);
}

/* Password field + show/hide toggle */
.rg-form-host .tutor-password-strength-checker,
.rg-form-host .tutor-password-field,
.rg-form-host .tutor-form-wrap{position:relative;}
.rg-form-host .show-hide-btn{
	position:absolute;right:13px;top:38px;cursor:pointer;color:var(--faint);z-index:2;line-height:0;
	transition:color .16s var(--ease);
}
.rg-form-host .show-hide-btn:hover{color:var(--g-deep);}
.rg-form-host .show-hide-btn svg,.rg-form-host .show-hide-btn i{width:18px;height:18px;}
.rg-form-host #tutor-registration-form input[name="password"],
.rg-form-host #tutor-registration-form input[name="password_confirmation"]{padding-right:42px;}

/* Password strength meter */
.rg-form-host .tutor-password-strength-hint{margin-top:9px;}
.rg-form-host .tutor-password-strength-hint .indicator{display:flex;gap:5px;margin-bottom:5px;}
.rg-form-host .tutor-password-strength-hint .indicator span{
	flex:1;height:4px;border-radius:3px;background:var(--line);transition:background .25s var(--ease);
}
.rg-form-host .tutor-password-strength-hint .indicator span.weak{background:var(--clay);}
.rg-form-host .tutor-password-strength-hint .indicator span.medium{background:#d8a13a;}
.rg-form-host .tutor-password-strength-hint .indicator span.strong{background:var(--g-soft);}
.rg-form-host .tutor-password-strength-hint .text{font-size:.74rem;color:var(--muted);}

/* Validation tick */
.rg-form-host .tutor-validation-icon{position:absolute;right:14px;top:40px;color:var(--g-soft);}

/* Terms row */
.rg-form-host .tutor-form-row.tutor-mb-24{margin:6px 0 20px !important;}
.rg-form-host .tutor-d-flex.tutor-gap-1{display:flex !important;align-items:flex-start !important;gap:10px !important;}
.rg-form-host #tutor-terms-conditions{
	appearance:none;-webkit-appearance:none;width:19px;height:19px;border:1.6px solid var(--line);border-radius:5px;
	background:#fff;cursor:pointer;position:relative;flex:0 0 auto;margin:1px 0 0;transition:all .16s var(--ease);
}
.rg-form-host #tutor-terms-conditions:checked{background:var(--g-deep);border-color:var(--g-deep);}
.rg-form-host #tutor-terms-conditions:checked::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(42deg);}
.rg-form-host label[for="tutor-terms-conditions"]{font-size:.85rem;line-height:1.5;color:var(--muted);cursor:pointer;}
.rg-form-host label[for="tutor-terms-conditions"] a{color:var(--g);font-weight:700;text-decoration:none;border-bottom:1px solid rgba(29,107,79,.3);}
.rg-form-host label[for="tutor-terms-conditions"] a:hover{border-color:var(--g);}

/* Submit */
.rg-form-host .tutor-btn-primary.tutor-btn-block,
.rg-form-host button[name="tutor_register_student_btn"]{
	width:100% !important;height:54px;border-radius:13px;border:1.5px solid var(--g-deep) !important;
	background:var(--g-deep) !important;color:#fff !important;font-family:"Hanken Grotesk",sans-serif;
	font-size:1rem;font-weight:800;letter-spacing:.01em;cursor:pointer;box-shadow:none !important;
	transition:all .2s var(--ease);display:flex;align-items:center;justify-content:center;
}
.rg-form-host .tutor-btn-primary.tutor-btn-block:hover{
	background:var(--g) !important;border-color:var(--g) !important;transform:translateY(-2px);
	box-shadow:0 18px 36px -16px rgba(18,63,45,.65) !important;
}
.rg-form-host .tutor-btn-primary[disabled],
.rg-form-host button[name="tutor_register_student_btn"][disabled]{opacity:.55;cursor:not-allowed;transform:none;}

/* reCAPTCHA */
.rg-form-host .g-recaptcha{margin:4px 0 14px;}

/* Social auth */
.rg-form-host #tutor-pro-social-authentication{
	margin-top:22px !important;padding-top:22px !important;border-top:1px solid var(--line) !important;position:relative;
}
.rg-form-host #tutor-pro-social-authentication::before{
	content:"or sign up with";position:absolute;top:-9px;left:50%;transform:translateX(-50%);
	background:var(--paper);padding:0 12px;font-size:.74rem;font-weight:700;letter-spacing:.04em;color:var(--faint);
}
.rg-form-host #tutor-pro-social-authentication a,
.rg-form-host #tutor-pro-social-authentication button{
	border-radius:11px !important;border:1.5px solid var(--line) !important;background:#fff !important;transition:all .18s var(--ease);
}
.rg-form-host #tutor-pro-social-authentication a:hover,
.rg-form-host #tutor-pro-social-authentication button:hover{
	border-color:var(--g-soft) !important;background:#f4f8f4 !important;transform:translateY(-1px);
}

/* Back link */
.rg-back{text-align:center;margin:22px 0 0;}
.rg-back a{display:inline-flex;align-items:center;gap:7px;font-size:.84rem;font-weight:700;color:var(--muted);text-decoration:none;transition:color .18s var(--ease);}
.rg-back a:hover{color:var(--g-deep);}
.rg-back svg{transition:transform .18s var(--ease);}
.rg-back a:hover svg{transform:translateX(-3px);}

/* ── Responsive ── */
@media (max-width:920px){
	#rg-root{padding:32px 18px;min-height:auto;}
	.rg-shell{grid-template-columns:1fr;max-width:520px;}
	.rg-aside{padding:32px 30px 28px;}
	.rg-aside-body{margin-top:26px;padding-top:0;}
	.rg-aside-title br{display:none;}
	.rg-aside-sub{max-width:none;}
	.rg-helix{opacity:.32;}
	.rg-panel{padding:36px 30px 38px;}
	.rg-panel-inner{max-width:none;}
}
@media (max-width:480px){
	.rg-form-host .tutor-form-row{grid-template-columns:1fr;}
	.rg-aside-foot{flex-wrap:wrap;}
}
