/*
 * Calc Jobs LETO — Login & Register Page Styles
 * Dark scientific aesthetic: near-black background, white text, teal #00bcd4 accent.
 */

/* ── Reset / base ────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Page layout ─────────────────────────────────────────────────────────── */

body.emm-login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #0d1117;
	background-image:
		radial-gradient(ellipse at 15% 55%, rgba(0, 188, 212, 0.07) 0%, transparent 55%),
		radial-gradient(ellipse at 85% 15%, rgba(0, 188, 212, 0.04) 0%, transparent 50%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #e6edf3;
	-webkit-font-smoothing: antialiased;
}

.emm-login-container {
	width: 100%;
	max-width: 460px;
	padding: 24px 16px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.emm-login-box {
	background: #161b22;
	border: 1px solid #30363d;
	border-radius: 10px;
	padding: 44px 44px 36px;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.35),
		0 1px 3px  rgba(0, 0, 0, 0.25);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.emm-login-header {
	text-align: center;
	margin-bottom: 32px;
}

.emm-logo-wrap {
	margin-bottom: 16px;
}

.emm-logo-wrap img.custom-logo {
	max-width: 150px;
	height: auto;
}

.emm-site-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #00bcd4;
	margin-bottom: 16px;
}

.emm-login-title {
	font-size: 26px;
	font-weight: 600;
	color: #e6edf3;
	letter-spacing: -0.3px;
	margin-bottom: 6px;
}

.emm-login-subtitle {
	font-size: 13px;
	color: #8b949e;
	line-height: 1.5;
}

/* ── Error notice ────────────────────────────────────────────────────────── */

.emm-login-error {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	background: rgba(248, 81, 73, 0.12);
	border: 1px solid rgba(248, 81, 73, 0.35);
	border-radius: 6px;
	padding: 11px 14px;
	margin-bottom: 22px;
	font-size: 13px;
	color: #ff7b72;
	line-height: 1.5;
}

.emm-error-icon {
	font-size: 15px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ── Success notice ──────────────────────────────────────────────────────── */

.emm-login-success {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	background: rgba(63, 185, 80, 0.12);
	border: 1px solid rgba(63, 185, 80, 0.35);
	border-radius: 6px;
	padding: 11px 14px;
	margin-bottom: 22px;
	font-size: 13px;
	color: #3fb950;
	line-height: 1.5;
}

.emm-success-icon {
	font-size: 15px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */

.emm-field-group {
	margin-bottom: 18px;
}

.emm-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #c9d1d9;
	margin-bottom: 7px;
}

.emm-required {
	color: #ff7b72;
	margin-left: 2px;
}

.emm-field-hint {
	font-size: 11px;
	color: #484f58;
	margin-top: 5px;
}

.emm-input {
	display: block !important;
	width: 100% !important;
	padding: 10px 14px !important;
	background: #0d1117 !important;
	background-color: #0d1117 !important;
	border: 1px solid #30363d !important;
	border-radius: 6px !important;
	color: #ffffff !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.emm-input:focus {
	border-color: #00bcd4 !important;
	box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.18) !important;
}

.emm-input::placeholder {
	color: #484f58;
}

/* Override browser autofill styles */
.emm-input:-webkit-autofill,
.emm-input:-webkit-autofill:hover,
.emm-input:-webkit-autofill:focus,
.emm-input:-webkit-autofill:active {
	-webkit-text-fill-color: #e6edf3 !important;
	-webkit-box-shadow: 0 0 0 1000px #0d1117 inset !important;
	box-shadow: 0 0 0 1000px #0d1117 inset !important;
	caret-color: #e6edf3;
	transition: background-color 9999s ease-in-out 0s;
}

/* ── First/Last name side by side ────────────────────────────────────────── */

.emm-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.emm-submit-btn {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 11px 20px;
	background: #00bcd4;
	border: none;
	border-radius: 6px;
	color: #0d1117;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.1s ease;
}

.emm-submit-btn:hover,
.emm-submit-btn:focus {
	background: #00acc1;
	outline: none;
}

.emm-submit-btn:active {
	transform: scale(0.985);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.emm-login-footer {
	text-align: center;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #21262d;
}

.emm-forgot-link {
	font-size: 12px;
	color: #58a6ff;
	text-decoration: none;
	transition: color 0.15s;
}

.emm-forgot-link:hover {
	color: #00bcd4;
	text-decoration: underline;
}

.emm-register-prompt {
	font-size: 12px;
	color: #8b949e;
	margin-top: 12px;
}

.emm-register-prompt a {
	color: #58a6ff;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s;
}

.emm-register-prompt a:hover {
	color: #00bcd4;
	text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 500px ) {
	.emm-login-box {
		padding: 30px 24px 26px;
	}

	.emm-login-title {
		font-size: 22px;
	}

	.emm-name-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
