/* ════════════════════════════════════════════════════════════════════
   Student Login — field-guide split-screen   (#lg-root)
   Restyles the [tutor_login] form in place; scoped so the dashboard's
   own Tutor forms are never affected.
   ════════════════════════════════════════════════════════════════════ */
#lg-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;
}
#lg-root *{box-sizing:border-box;}
.lg-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 ── */
.lg-shell{
	position:relative;z-index:1;width:100%;max-width:1060px;
	display:grid;grid-template-columns:1.04fr .96fr;
	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:lg-rise .7s var(--ease) both;
}
@keyframes lg-rise{from{opacity:0;transform:translateY(22px) scale(.99);}to{opacity:1;transform:none;}}

/* ── Aside (brand / story) ── */
.lg-aside{
	position:relative;overflow:hidden;padding:40px 42px 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%);
}
.lg-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:lg-pulse 7s ease-in-out infinite;}
@keyframes lg-pulse{0%,100%{transform:scale(1);opacity:.85;}50%{transform:scale(1.12);opacity:1;}}
.lg-helix{position:absolute;top:0;right:-18px;height:100%;width:120px;opacity:.55;pointer-events:none;
	animation:lg-drift 14s ease-in-out infinite;}
@keyframes lg-drift{0%,100%{transform:translateY(0);}50%{transform:translateY(-14px);}}

.lg-brand{position:relative;z-index:2;display:inline-flex;align-items:center;gap:11px;text-decoration:none;align-self:flex-start;
	animation:lg-fade .6s var(--ease) .15s both;}
.lg-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);}
.lg-brand-name{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:1.32rem;letter-spacing:.01em;color:#fff;}

.lg-aside-body{position:relative;z-index:2;margin-top:auto;padding-top:38px;}
.lg-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:lg-fade .6s var(--ease) .25s both;}
.lg-eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px rgba(159,224,192,.18);}
.lg-aside-title{font-family:"Newsreader",Georgia,serif;font-weight:600;font-size:clamp(30px,3.6vw,44px);line-height:1.04;
	letter-spacing:-.015em;margin:0 0 16px;color:#fff;animation:lg-fade .6s var(--ease) .32s both;}
.lg-aside-title em{font-style:italic;color:var(--mint);}
.lg-aside-sub{font-size:.98rem;line-height:1.62;color:rgba(255,255,255,.74);max-width:330px;margin:0 0 26px;
	animation:lg-fade .6s var(--ease) .4s both;}
.lg-aside-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px;
	animation:lg-fade .6s var(--ease) .48s both;}
.lg-aside-list li{display:flex;align-items:center;gap:12px;font-size:.91rem;font-weight:500;color:rgba(255,255,255,.9);}
.lg-aside-list svg{flex:0 0 auto;width:19px;height:19px;color:var(--mint);}

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

@keyframes lg-fade{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:none;}}

/* ── Panel (form) ── */
.lg-panel{background:var(--paper);display:flex;align-items:center;justify-content:center;padding:48px 46px;}
.lg-panel-inner{width:100%;max-width:380px;animation:lg-fade .6s var(--ease) .3s both;}
.lg-head{margin:0 0 26px;}
.lg-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);}
.lg-head-sub{font-size:.92rem;color:var(--muted);margin:0;}
.lg-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);}
.lg-head-sub a:hover{border-color:var(--g);}

/* ── Tutor form host: neutralise Tutor chrome ── */
.lg-form-host .tutor-wrap,
.lg-form-host .tutor-page-wrap,
.lg-form-host .tutor-template-segment,
.lg-form-host .tutor-login-wrap,
.lg-form-host .tutor-login-form-wrapper{
	all:unset;display:block;width:100%;max-width:none;margin:0;padding:0;background:none;border:0;box-shadow:none;
}
/* Hide the shortcode's own internal "Login" heading — we provide our own. */
.lg-form-host .tutor-login-form-wrapper > .tutor-fs-5{display:none !important;}

.lg-form-host #tutor-login-form{display:flex;flex-direction:column;}

/* Inputs */
.lg-form-host .tutor-form-control{
	width:100%;height:52px;padding:0 16px 0 46px;border:1.5px solid var(--line);border-radius:13px;
	background:#fff;color:var(--ink);font-family:inherit;font-size:.96rem;line-height:52px;
	transition:border-color .2s var(--ease),box-shadow .2s var(--ease);box-shadow:none;
	background-repeat:no-repeat;background-position:16px center;background-size:18px;
}
.lg-form-host input[name="log"]{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236a6f60' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3E%3Cpath d='M6 21v-1a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v1'/%3E%3C/svg%3E");
}
.lg-form-host input[name="pwd"]{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236a6f60' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
.lg-form-host .tutor-form-control::placeholder{color:var(--faint);}
.lg-form-host .tutor-form-control:focus{
	outline:none;border-color:var(--g-soft);box-shadow:0 0 0 4px rgba(47,138,103,.14);background-color:#fff;
}
.lg-form-host .tutor-mb-20{margin-bottom:14px !important;}
.lg-form-host .tutor-mb-32{margin-bottom:18px !important;}

/* Error */
.lg-form-host .tutor-login-error{color:var(--clay-dk);font-size:.86rem;font-weight:600;}
.lg-form-host .tutor-login-error:not(:empty){
	background:#f8ede4;border:1px solid #ecd6c4;border-radius:10px;padding:10px 13px;margin-bottom:14px;
}

/* Remember + forgot row */
.lg-form-host .tutor-d-flex.tutor-justify-between{
	display:flex !important;align-items:center !important;justify-content:space-between !important;
	margin-bottom:22px !important;
}
.lg-form-host .tutor-form-check{display:flex;align-items:center;gap:9px;}
.lg-form-host .tutor-form-check-input{
	appearance:none;-webkit-appearance:none;width:18px;height:18px;border:1.6px solid var(--line);border-radius:5px;
	background:#fff;cursor:pointer;position:relative;flex:0 0 auto;transition:all .16s var(--ease);margin:0;
}
.lg-form-host .tutor-form-check-input:checked{background:var(--g-deep);border-color:var(--g-deep);}
.lg-form-host .tutor-form-check-input: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);
}
.lg-form-host .tutor-form-check label{font-size:.85rem;color:var(--muted);cursor:pointer;}
.lg-form-host a.tutor-btn-ghost{
	background:none !important;border:0 !important;padding:0 !important;height:auto !important;min-height:0 !important;
	color:var(--g) !important;font-size:.85rem;font-weight:700;text-decoration:none;box-shadow:none !important;
}
.lg-form-host a.tutor-btn-ghost:hover{color:var(--g-deep) !important;text-decoration:underline;}

/* Submit */
.lg-form-host .tutor-btn-primary.tutor-btn-block,
.lg-form-host button[type="submit"].tutor-btn-primary{
	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;
}
.lg-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;
}
.lg-form-host .tutor-btn-primary[disabled]{opacity:.55;cursor:not-allowed;transform:none;}

/* Register row */
.lg-form-host .tutor-text-center{text-align:center;margin-top:18px !important;color:var(--muted);font-size:.9rem;}
.lg-form-host a.tutor-btn-link{
	background:none !important;border:0 !important;padding:0 !important;height:auto !important;
	color:var(--g) !important;font-weight:700;text-decoration:none;box-shadow:none !important;
}
.lg-form-host a.tutor-btn-link:hover{text-decoration:underline;}

/* reCAPTCHA badge spacing */
.lg-form-host .g-recaptcha{margin-bottom:16px;transform-origin:0 0;}

/* Social auth */
.lg-form-host #tutor-pro-social-authentication{
	margin-top:22px !important;padding-top:22px !important;border-top:1px solid var(--line) !important;
	position:relative;
}
.lg-form-host #tutor-pro-social-authentication::before{
	content:"or continue 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);text-transform:lowercase;
}
.lg-form-host #tutor-pro-social-authentication a,
.lg-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);
}
.lg-form-host #tutor-pro-social-authentication a:hover,
.lg-form-host #tutor-pro-social-authentication button:hover{
	border-color:var(--g-soft) !important;background:#f4f8f4 !important;transform:translateY(-1px);
}

/* Back link */
.lg-back{text-align:center;margin:24px 0 0;}
.lg-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);}
.lg-back a:hover{color:var(--g-deep);}
.lg-back svg{transition:transform .18s var(--ease);}
.lg-back a:hover svg{transform:translateX(-3px);}

/* ── Responsive ── */
@media (max-width:880px){
	#lg-root{padding:32px 18px;min-height:auto;}
	.lg-shell{grid-template-columns:1fr;max-width:440px;}
	.lg-aside{padding:32px 30px 28px;}
	.lg-aside-body{margin-top:26px;padding-top:0;}
	.lg-aside-title br{display:none;}
	.lg-aside-sub{max-width:none;}
	.lg-helix{opacity:.32;}
	.lg-panel{padding:36px 30px 38px;}
	.lg-panel-inner{max-width:none;}
}
@media (max-width:420px){
	.lg-aside-foot{flex-wrap:wrap;gap:14px;}
	.lg-stat + .lg-stat{border-left:0;margin-left:0;padding-left:0;}
}
