/* ==========================================================================
   LEARN WITH — STUDENT AREA  (login · register · enroll · my courses · account)
   Black background · lime #9DE600 · white type · premium cards · minimal.
   Builds on learnwith.css tokens. LifterLMS and WordPress markup is restyled
   here so nothing looks like a default WordPress or plugin page.
   ========================================================================== */

/* ---- Login card — matches the approved Login design ---------------------- */
body.lw-theme .lw-login-section { background: #011f01; }
body.lw-theme .lw-auth-card.lw-auth-card--login {
	width: 100%;
	max-width: 460px;
	padding: 36px;
	background: #011f01;
	border: 1px solid #7e9688;
	border-radius: 20px;
	box-shadow: none;
	text-align: left;
	gap: 0;
}
body.lw-theme .lw-auth-card--login .lw-eyebrow { margin: 0 0 12px; }
body.lw-theme .lw-auth-card.lw-auth-card--login { max-width: 580px; padding: 44px; }
@media (max-width: 767px) {
	body.lw-theme .lw-auth-card.lw-auth-card--login { padding: 28px 22px; }
}
body.lw-theme .lw-auth-card--login h1,
body.lw-theme .lw-auth-card--login .elementor-heading-title.elementor-size-default { text-align: left; }
body.lw-theme .lw-auth-card--login h1 { margin: 0 0 12px; font-size: 44px; line-height: 1.1; }
body.lw-theme .lw-auth-card--login .lw-lead,
body.lw-theme .lw-auth-card--login .lw-lead p { margin: 0 0 28px; color: #9db3a6; font-size: 1rem; text-align: left; }
body.lw-theme .lw-auth-card--login label { font-weight: 500; font-size: 14px; margin-bottom: 6px; }
body.lw-theme .lw-auth-card--login input[type="text"],
body.lw-theme .lw-auth-card--login input[type="password"] {
	min-height: 48px;
	background: #07120d;
	border: 1px solid #2e5440;
	border-radius: 12px;
	padding: 12px 14px;
}
body.lw-theme .lw-auth-card--login input[type="text"]:focus,
body.lw-theme .lw-auth-card--login input[type="password"]:focus {
	outline: 2px solid #c8f135;
	border-color: #c8f135;
	box-shadow: none;
}
body.lw-theme .lw-auth-card--login .login-remember label { font-size: 14px; }
body.lw-theme .lw-auth-card--login .lw-login-form .button-primary {
	min-height: 48px;
	border-radius: 999px;
	background: #c8f135;
	color: #0a0a0a;
	font-size: 15px;
	box-shadow: none;
}
body.lw-theme .lw-auth-card--login .lw-login-form .button-primary:hover { background: #d9ff5a; transform: none; }
body.lw-theme .lw-auth-card--login .lw-auth-links {
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 0;
	border-top: 0;
	font-size: 14px;
	text-align: center;
}
body.lw-theme .lw-auth-card--login .lw-auth-links a { color: #c8f135; font-weight: 500; }
@media (max-width: 767px) {
	body.lw-theme .lw-auth-card.lw-auth-card--login { padding: 28px 22px; }
	body.lw-theme .lw-auth-card--login h1 { font-size: 34px; }
}

/* ---- Auth card (Elementor container with class lw-auth-card) ------------- */
body.lw-theme .lw-auth-card {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	background: var(--lw-card);
	border: 1px solid var(--lw-border-green);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
body.lw-theme .lw-auth-card--narrow { max-width: 460px; }
body.lw-theme .lw-auth-card--wide { max-width: 680px; }
@media (max-width: 767px) {
	body.lw-theme .lw-auth-card { padding: 24px 20px; border-radius: 16px; }
}

body.lw-theme .lw-auth-hero { text-align: center; }
body.lw-theme .lw-auth-hero .lw-lead { max-width: 560px; margin-inline: auto; }

/* ---- Form controls (WordPress login, LifterLMS forms, account) ---------- */
body.lw-theme .lw-scope label,
body.lw-theme .lw-auth-card label,
body.lw-theme .llms-student-dashboard label,
body.lw-theme .llms-form-field label {
	display: block;
	color: var(--lw-text);
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 8px;
}
body.lw-theme .llms-form-field .llms-required,
body.lw-theme .llms-form-field label .llms-required { color: var(--lw-lime); }

body.lw-theme .lw-auth-card input[type="text"],
body.lw-theme .lw-auth-card input[type="email"],
body.lw-theme .lw-auth-card input[type="password"],
body.lw-theme .lw-auth-card input[type="tel"],
body.lw-theme .lw-auth-card input[type="url"],
body.lw-theme .lw-auth-card input[type="number"],
body.lw-theme .lw-auth-card select,
body.lw-theme .lw-auth-card textarea,
body.lw-theme .llms-student-dashboard input[type="text"],
body.lw-theme .llms-student-dashboard input[type="email"],
body.lw-theme .llms-student-dashboard input[type="password"],
body.lw-theme .llms-student-dashboard input[type="tel"],
body.lw-theme .llms-student-dashboard select,
body.lw-theme .llms-student-dashboard textarea {
	width: 100%;
	min-height: 50px;
	background: var(--lw-bg);
	color: var(--lw-text);
	border: 1px solid var(--lw-border);
	border-radius: var(--lw-radius-btn);
	padding: 13px 16px;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color var(--lw-fast) ease, box-shadow var(--lw-fast) ease;
	-webkit-appearance: none;
	appearance: none;
}
body.lw-theme .lw-auth-card textarea,
body.lw-theme .llms-student-dashboard textarea { min-height: 120px; resize: vertical; }
body.lw-theme .lw-auth-card input::placeholder,
body.lw-theme .llms-student-dashboard input::placeholder { color: #6f6f6f; }
body.lw-theme .lw-auth-card select,
body.lw-theme .llms-student-dashboard select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239de600' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
body.lw-theme .lw-auth-card select option,
body.lw-theme .llms-student-dashboard select option { background: var(--lw-card); color: var(--lw-text); }
body.lw-theme .lw-auth-card input:focus,
body.lw-theme .lw-auth-card select:focus,
body.lw-theme .lw-auth-card textarea:focus,
body.lw-theme .llms-student-dashboard input:focus,
body.lw-theme .llms-student-dashboard select:focus,
body.lw-theme .llms-student-dashboard textarea:focus {
	outline: 0;
	border-color: var(--lw-lime);
	box-shadow: 0 0 0 3px var(--lw-lime-glow);
}
body.lw-theme .lw-auth-card input[type="checkbox"],
body.lw-theme .llms-student-dashboard input[type="checkbox"] {
	width: 18px;
	min-height: 0;
	height: 18px;
	accent-color: var(--lw-lime);
	-webkit-appearance: auto;
	appearance: auto;
	vertical-align: middle;
	margin-right: 10px;
}

/* Field layout: 12-col grid so LifterLMS column widths stay tidy. */
body.lw-theme .lw-auth-card .llms-form-fields,
body.lw-theme .llms-student-dashboard .llms-form-fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px 16px;
	margin: 0;
}
body.lw-theme .lw-auth-card .llms-form-fields::before,
body.lw-theme .lw-auth-card .llms-form-fields::after,
body.lw-theme .llms-student-dashboard .llms-form-fields::before,
body.lw-theme .llms-student-dashboard .llms-form-fields::after,
body.lw-theme .lw-auth-card .clear,
body.lw-theme .llms-student-dashboard .clear { display: none; }
body.lw-theme .lw-auth-card .llms-form-field,
body.lw-theme .llms-student-dashboard .llms-form-field {
	grid-column: span 12;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}
body.lw-theme .lw-auth-card .llms-form-field.llms-cols-6,
body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-6 { grid-column: span 6; }
body.lw-theme .lw-auth-card .llms-form-field.llms-cols-4,
body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-4 { grid-column: span 4; }
body.lw-theme .lw-auth-card .llms-form-field.llms-cols-8,
body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-8 { grid-column: span 8; }
body.lw-theme .lw-auth-card .llms-form-field.llms-cols-3,
body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-3 { grid-column: span 3; }
body.lw-theme .lw-auth-card .llms-form-field-confirm-group,
body.lw-theme .llms-student-dashboard .llms-form-field-confirm-group,
body.lw-theme .lw-auth-card .llms-form-field-user-name,
body.lw-theme .llms-student-dashboard .llms-form-field-user-name {
	grid-column: span 12;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}
body.lw-theme .lw-auth-card .llms-form-field-confirm-group > .llms-form-field,
body.lw-theme .llms-student-dashboard .llms-form-field-confirm-group > .llms-form-field,
body.lw-theme .lw-auth-card .llms-form-field-user-name > .llms-form-field,
body.lw-theme .llms-student-dashboard .llms-form-field-user-name > .llms-form-field { grid-column: auto; }
@media (max-width: 640px) {
	body.lw-theme .lw-auth-card .llms-form-field.llms-cols-6,
	body.lw-theme .lw-auth-card .llms-form-field.llms-cols-4,
	body.lw-theme .lw-auth-card .llms-form-field.llms-cols-8,
	body.lw-theme .lw-auth-card .llms-form-field.llms-cols-3,
	body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-6,
	body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-4,
	body.lw-theme .llms-student-dashboard .llms-form-field.llms-cols-8 { grid-column: span 12; }
	body.lw-theme .lw-auth-card .llms-form-field-confirm-group,
	body.lw-theme .llms-student-dashboard .llms-form-field-confirm-group,
	body.lw-theme .lw-auth-card .llms-form-field-user-name,
	body.lw-theme .llms-student-dashboard .llms-form-field-user-name { grid-template-columns: minmax(0, 1fr); }
}

/* Password strength meter */
body.lw-theme .llms-password-strength-meter {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--lw-bg);
	border: 1px solid var(--lw-border);
	color: var(--lw-muted);
	font-size: 0.8125rem;
	text-align: left;
}
body.lw-theme .llms-password-strength-meter.good,
body.lw-theme .llms-password-strength-meter.strong { border-color: var(--lw-border-hover); color: var(--lw-lime); }
body.lw-theme .llms-password-strength-meter.bad,
body.lw-theme .llms-password-strength-meter.mismatch { border-color: #ff5d5d; color: #ff9b9b; }
body.lw-theme .llms-field-description,
body.lw-theme .llms-description { color: var(--lw-muted); font-size: 0.8125rem; margin-top: 6px; }

/* Buttons: LifterLMS + WordPress login */
body.lw-theme .lw-auth-card .llms-button-action,
body.lw-theme .lw-auth-card input[type="submit"],
body.lw-theme .lw-auth-card button[type="submit"],
body.lw-theme .llms-student-dashboard .llms-button-action,
body.lw-theme .llms-student-dashboard input[type="submit"],
body.lw-theme .llms-student-dashboard button[type="submit"],
body.lw-theme .lw-login-form .button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	background: var(--lw-lime);
	color: var(--lw-on-lime);
	border: 0;
	border-radius: var(--lw-radius-btn);
	padding: 14px 28px;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 24px var(--lw-lime-glow);
	transition: background var(--lw-fast) ease, transform var(--lw-fast) ease, box-shadow var(--lw-fast) ease;
}
body.lw-theme .lw-auth-card .llms-button-action:hover,
body.lw-theme .lw-auth-card input[type="submit"]:hover,
body.lw-theme .lw-auth-card button[type="submit"]:hover,
body.lw-theme .llms-student-dashboard .llms-button-action:hover,
body.lw-theme .llms-student-dashboard input[type="submit"]:hover,
body.lw-theme .lw-login-form .button-primary:hover {
	background: var(--lw-lime-hover);
	transform: translateY(-1px);
}
body.lw-theme .lw-auth-card .llms-button-action:focus-visible,
body.lw-theme .lw-auth-card input[type="submit"]:focus-visible,
body.lw-theme .lw-login-form .button-primary:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
body.lw-theme .lw-auth-card .llms-form-field.llms-button-wrapper,
body.lw-theme .lw-auth-card footer.llms-form-fields { margin-top: 8px; }
body.lw-theme .lw-auth-card footer.llms-form-fields .llms-form-field { grid-column: span 12; }
body.lw-theme .lw-auth-card .llms-form-heading { display: none; }

/* WordPress login form (wp_login_form) */
body.lw-theme .lw-login-form form { margin: 0; }
body.lw-theme .lw-login-form p { margin: 0 0 20px; }
body.lw-theme .lw-login-form .login-remember label {
	display: flex;
	align-items: center;
	color: var(--lw-muted);
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}
body.lw-theme .lw-login-form .login-submit { margin: 4px 0 0; }

/* Links under forms */
body.lw-theme .lw-auth-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--lw-border);
	color: var(--lw-muted);
	font-size: 0.9375rem;
}
body.lw-theme .lw-auth-links--center { justify-content: center; text-align: center; }
body.lw-theme .lw-auth-links a { font-weight: 600; }
body.lw-theme .lw-auth-state { text-align: center; }
body.lw-theme .lw-auth-state p { margin: 0 0 20px; color: var(--lw-muted); }

/* Notices (WordPress + LifterLMS) */
body.lw-theme .lw-notice,
body.lw-theme .llms-notice-box,
body.lw-theme .llms-error,
body.lw-theme .llms-success,
body.lw-theme .llms-info,
body.lw-theme ul.llms-notice-box,
body.lw-theme .llms-form-field .llms-error {
	list-style: none;
	margin: 0 0 24px;
	padding: 14px 18px;
	background: rgba(157, 230, 0, 0.06);
	border: 1px solid var(--lw-border-hover);
	border-radius: var(--lw-radius-sm);
	color: var(--lw-text);
	font-size: 0.9375rem;
}
body.lw-theme .lw-notice--error,
body.lw-theme .llms-error,
body.lw-theme ul.llms-notice-box.llms-error,
body.lw-theme .llms-notice-box.llms-error {
	background: rgba(255, 93, 93, 0.08);
	border-color: rgba(255, 93, 93, 0.55);
}
body.lw-theme .llms-notice-box li { margin: 0; }

/* ---- Enrollment flow ------------------------------------------------------ */
body.lw-theme .lw-enroll { max-width: 720px; margin-inline: auto; }
body.lw-theme .lw-flow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	color: var(--lw-muted);
	font-size: 0.875rem;
	font-weight: 600;
}
body.lw-theme .lw-flow li { display: inline-flex; align-items: center; gap: 10px; }
body.lw-theme .lw-flow li span {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--lw-border);
	background: var(--lw-card);
	font-size: 0.8125rem;
}
body.lw-theme .lw-flow li.is-active { color: var(--lw-text); }
body.lw-theme .lw-flow li.is-active span { background: var(--lw-lime); border-color: var(--lw-lime); color: var(--lw-on-lime); }
body.lw-theme .lw-flow li.is-done { color: var(--lw-text); }
body.lw-theme .lw-flow li.is-done span { border-color: var(--lw-lime); color: var(--lw-lime); }

body.lw-theme .lw-enroll-card { padding: 40px; text-align: center; }
body.lw-theme .lw-enroll-card h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
body.lw-theme .lw-enroll-card > p { color: var(--lw-muted); margin: 0 auto 24px; max-width: 520px; }
body.lw-theme .lw-enroll-card .lw-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
body.lw-theme .lw-enroll-card--success .lw-ibox { margin: 0 auto 20px; }
body.lw-theme .lw-enroll-course {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	text-align: left;
	margin: 24px 0;
	padding: 16px;
	background: var(--lw-bg);
	border: 1px solid var(--lw-border);
	border-radius: var(--lw-radius);
}
body.lw-theme .lw-enroll-course .lw-media { aspect-ratio: 4 / 3; border-radius: var(--lw-radius-sm); overflow: hidden; margin: 0; }
body.lw-theme .lw-enroll-course .lw-media img { width: 100%; height: 100%; object-fit: cover; }
body.lw-theme .lw-enroll-course h3 { margin: 0 0 4px; font-size: 1.125rem; }
body.lw-theme .lw-enroll-course p { margin: 0; color: var(--lw-muted); }
@media (max-width: 520px) {
	body.lw-theme .lw-enroll-card { padding: 28px 20px; }
	body.lw-theme .lw-enroll-course { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
}

/* Welcome confirmation after registration */
body.lw-theme .lw-welcome {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	max-width: 720px;
	margin: 0 auto 32px;
	padding: 24px 28px;
	text-align: left;
	border-color: var(--lw-border-hover);
}
body.lw-theme .lw-welcome .lw-ibox { flex: none; }
body.lw-theme .lw-welcome h2 { margin: 0 0 6px; font-size: 1.375rem; }
body.lw-theme .lw-welcome p { margin: 0; color: var(--lw-muted); }

/* ---- My Courses ------------------------------------------------------------ */
body.lw-theme .lw-mycourses .lw-grid { margin-top: 8px; }
body.lw-theme .lw-progress {
	height: 8px;
	margin: 18px 0 8px;
	background: var(--lw-border);
	border-radius: 999px;
	overflow: hidden;
}
body.lw-theme .lw-progress > span {
	display: block;
	height: 100%;
	min-width: 0;
	background: var(--lw-lime);
	border-radius: inherit;
	box-shadow: 0 0 12px var(--lw-lime-glow);
}
body.lw-theme .lw-progress__label {
	display: flex;
	justify-content: space-between;
	margin: 0 0 18px;
	color: var(--lw-muted);
	font-size: 0.875rem;
}
body.lw-theme .lw-progress__label strong { color: var(--lw-text); }

/* ---- LifterLMS student dashboard / account (profile) ----------------------- */
body.lw-theme .llms-student-dashboard {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	color: var(--lw-text);
}
@media (max-width: 860px) {
	body.lw-theme .llms-student-dashboard { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
body.lw-theme .llms-student-dashboard .llms-sd-nav,
body.lw-theme .llms-student-dashboard .llms-sd-content {
	background: var(--lw-card);
	border: 1px solid var(--lw-border-green);
	border-radius: 20px;
	padding: 24px;
}
body.lw-theme .llms-student-dashboard .llms-sd-content { padding: 36px; }
body.lw-theme .llms-student-dashboard .llms-sd-nav ul,
body.lw-theme .llms-student-dashboard .llms-sd-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
body.lw-theme .llms-student-dashboard .llms-sd-nav li { margin: 0; padding: 0; list-style: none; }
body.lw-theme .llms-student-dashboard .llms-sd-nav a {
	display: block;
	padding: 12px 14px;
	border-radius: var(--lw-radius-sm);
	color: var(--lw-muted);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--lw-fast) ease, color var(--lw-fast) ease;
}
body.lw-theme .llms-student-dashboard .llms-sd-nav a:hover,
body.lw-theme .llms-student-dashboard .llms-sd-nav .current a,
body.lw-theme .llms-student-dashboard .llms-sd-nav .is-active a,
body.lw-theme .llms-student-dashboard .llms-sd-nav li.current-menu-item a {
	background: rgba(157, 230, 0, 0.08);
	color: var(--lw-lime);
}
body.lw-theme .llms-student-dashboard h2,
body.lw-theme .llms-student-dashboard h3,
body.lw-theme .llms-student-dashboard .llms-sd-title { color: var(--lw-text); margin-top: 0; }
body.lw-theme .llms-student-dashboard table { width: 100%; border-collapse: collapse; color: var(--lw-text); }
body.lw-theme .llms-student-dashboard th,
body.lw-theme .llms-student-dashboard td { border: 0; border-bottom: 1px solid var(--lw-border); padding: 12px 8px; background: transparent; }

/* LifterLMS progress bar (lessons, course pages, dashboard) */
body.lw-theme .llms-progress .progress-bar { background: var(--lw-border); border-radius: 999px; height: 8px; overflow: hidden; }
body.lw-theme .llms-progress .progress-bar-complete { background: var(--lw-lime); height: 100%; }
body.lw-theme .llms-progress .llms-progress-text,
body.lw-theme .llms-progress .progress-text { color: var(--lw-muted); }

/* LifterLMS generic buttons */
body.lw-theme .llms-button-action,
body.lw-theme a.llms-button-action,
body.lw-theme .llms-button-primary {
	background: var(--lw-lime);
	color: var(--lw-on-lime);
	border-radius: var(--lw-radius-btn);
	font-weight: 700;
	border: 0;
}
body.lw-theme .llms-button-action:hover,
body.lw-theme a.llms-button-action:hover { background: var(--lw-lime-hover); color: var(--lw-on-lime); }
body.lw-theme .llms-button-secondary,
body.lw-theme .llms-button-danger {
	background: transparent;
	color: var(--lw-text);
	border: 1px solid var(--lw-border);
	border-radius: var(--lw-radius-btn);
}
