/* CELPIP Edu — branded login & registration page.
 * Loaded on all website pages via web_include_css, but every rule is scoped to the login
 * page's own classes (.page-card / .btn-login / .btn-signup), so it never affects other
 * pages or the lms frontend SPA. */

:root {
	--celpip-teal: #0d9488;
	--celpip-teal-dark: #0f766e;
	--celpip-ink: #0f172a;
}

/* Soft branded backdrop, only on pages that contain the login card. */
body:has(.page-card) {
	background:
		radial-gradient(1100px 480px at 50% -12%, #ccfbf1 0%, rgba(204, 251, 241, 0) 60%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.page-card {
	max-width: 420px;
	margin: 6vh auto 0;
	padding: 2rem 2rem 1.75rem;
	background: #ffffff;
	border: 1px solid #e6e8eb;
	border-radius: 16px;
	box-shadow:
		0 18px 40px -18px rgba(13, 148, 136, 0.28),
		0 6px 16px -10px rgba(15, 23, 42, 0.16);
}

.page-card .app-logo {
	height: 40px;
	width: auto;
	margin: 0 auto 0.75rem;
	display: block;
}

.page-card-head,
.page-card-head-text {
	text-align: center;
}
.page-card-head-text h4 {
	font-weight: 700;
	color: var(--celpip-ink);
}
.page-card-subtitle {
	color: #64748b;
}

/* Inputs — uniform look/height across Sign In, Sign Up and Forgot Password. */
.page-card .form-control {
	border-radius: 10px;
	border: 1px solid #d7dbe0;
	background-color: #ffffff;
	height: 40px;
	box-sizing: border-box;
	padding: 0 0.75rem;
}

/* Country-code + mobile row: full width so the number field's right edge lines up with
 * the Name/Email fields above; the code selector is wide enough not to clip "+971". */
.page-card .mobile-field {
	display: flex;
	gap: 8px;
	width: 100%;
}
.page-card .mobile-field select.form-control {
	flex: 0 0 auto;
	width: 118px;
	padding-right: 30px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}
.page-card .mobile-field input#signup_mobile {
	flex: 1 1 auto;
	min-width: 0;
}
.page-card .form-control:focus {
	border-color: var(--celpip-teal);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

/* Primary CTAs: "Continue" (login) and lms "Sign up" */
.page-card .btn-login,
.page-card .btn-signup {
	background: var(--celpip-teal) !important;
	border-color: var(--celpip-teal) !important;
	color: #ffffff !important;
	border-radius: 10px;
	font-weight: 600;
	padding: 0.6rem 1rem;
}
.page-card .btn-login:hover,
.page-card .btn-signup:hover {
	background: var(--celpip-teal-dark) !important;
	border-color: var(--celpip-teal-dark) !important;
}

/* Secondary buttons stay neutral but pick up the rounded look */
.page-card .btn-login-option {
	border-radius: 10px;
}

/* Links / toggles in the teal accent */
.page-card a,
.sign-up-message a,
.forgot-password-message a {
	color: var(--celpip-teal);
}
.page-card a:hover {
	color: var(--celpip-teal-dark);
}
