/* metaDoctors — Login TENA (Figma TEN-018-026, frame 1440x1024) */
:root {
	--md-tena-green: #76b82a;
	--md-tena-text: #4c546f;
	--md-tena-field: #eceef1;
	--md-tena-blue-dark: #1c378b;
	--md-tena-blue-light: #059bd9;
}

.md-tena-layout,
.md-tena-layout *,
.md-tena-layout *::before,
.md-tena-layout *::after {
	box-sizing: border-box;
}

/*
 * --md-tena-w = largura da onda (1177px no frame de 1440px).
 * Onda e logo escalam juntos, então o logo fica sempre sobre a faixa escura
 * e alinhado à coluna esquerda (156px = 10.83vw).
 */
.md-tena-layout {
	--md-tena-w: max(81.74vw, 640px);
	position: relative;
	overflow: hidden;
	font-family: "Asap", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #fff;
	line-height: 1.15;
	min-height: 100vh;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-color: var(--md-tena-blue-dark);
	background-image: linear-gradient(0.072deg, var(--md-tena-blue-dark) 0%, var(--md-tena-blue-light) 99.912%);
}

.md-tena-hero {
	position: absolute;
	top: 0;
	left: calc(var(--md-tena-w) * -0.19201);
	width: var(--md-tena-w);
	pointer-events: none;
}

.md-tena-layout .md-tena-wave {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.md-tena-logo {
	position: absolute;
	top: calc(var(--md-tena-w) * 0.04673);
	left: calc(var(--md-tena-w) * 0.13254);
	width: calc(var(--md-tena-w) * 0.33216);
	z-index: 1;
}

.md-tena-layout .md-tena-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

.md-tena-grid {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 459px;
	column-gap: 40px;
	align-items: end;
	padding: 179px 10.83vw clamp(48px, calc(100vh - 844px), 180px);
}

/* ---------- Coluna esquerda ---------- */

.md-tena-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.md-tena-layout .md-tena-title {
	display: inline-block;
	margin: 0;
	padding: 0 0 5px;
	border-bottom: 2px solid var(--md-tena-green);
	font-family: inherit;
	font-weight: 700;
	font-size: min(45px, 3.25vw);
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.md-tena-layout .md-tena-subtitle {
	margin: 40.25px 0 0;
	font-family: inherit;
	font-weight: 400;
	font-size: min(47.25px, 3.41vw);
	line-height: 1;
	color: #fff;
}

.md-tena-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 17.336px;
	margin-top: 16.66px;
}

.md-tena-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34.21px;
	padding: 0 32.633px;
	border-radius: 11.218px;
	background: var(--md-tena-green);
	font-size: 12.237px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

.md-tena-partners {
	display: flex;
	align-items: flex-start;
	gap: 0;
	margin-top: 114.7px;
}

.md-tena-lockup {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.md-tena-lockup--powered {
	width: 168px;
}

.md-tena-lockup-label {
	font-size: 12px;
	line-height: 14px;
	color: #fff;
	white-space: nowrap;
}

.md-tena-lockup--sponsored .md-tena-lockup-label {
	font-family: "Open Sans", "Asap", sans-serif;
	line-height: 14px;
}

.md-tena-layout .md-tena-md-logo {
	display: block;
	width: 131.23px;
	height: 14.6762px;
	max-width: none;
	margin-top: 21.8px;
}

.md-tena-layout .md-tena-small-logo {
	display: block;
	width: 65.8518px;
	height: 28px;
	max-width: none;
	margin-top: 14.6px;
}

/* ---------- Coluna direita ---------- */

.md-tena-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
}

.md-tena-layout .md-tena-welcome {
	margin: 0;
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 34.4px;
	letter-spacing: 0;
	color: #fff;
}

.md-tena-layout .md-tena-intro {
	margin: 15px 0 0;
	max-width: 459px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 400;
	line-height: 28px;
	color: #fff;
}

.md-tena-layout .md-tena-intro strong {
	font-weight: 600;
}

.md-tena-card {
	width: 100%;
	margin-top: 30px;
	padding: 48px 41px 37.7px;
	border-radius: 27.748px;
	background: #fff;
	text-align: left;
}

.md-tena-layout .md-tena-card-title {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 23px;
	letter-spacing: 0;
	text-align: center;
	color: var(--md-tena-text);
}

.md-tena-form {
	display: flex;
	flex-direction: column;
	margin: 45px 0 0;
}

.md-tena-field + .md-tena-field {
	margin-top: 20.8px;
}

.md-tena-layout .md-tena-field input {
	display: block;
	width: 100%;
	height: 47.403px;
	margin: 0;
	padding: 0 21.967px;
	border: 1px solid transparent;
	border-radius: 70.874px;
	background: var(--md-tena-field);
	font-family: inherit;
	font-size: 16.676px;
	line-height: 19px;
	color: var(--md-tena-text);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.md-tena-layout .md-tena-field input::placeholder {
	color: var(--md-tena-text);
	opacity: 1;
}

.md-tena-layout .md-tena-field input:focus {
	outline: none;
	border-color: var(--md-tena-green);
	box-shadow: 0 0 0 3px rgba(118, 184, 42, 0.2);
}

.md-tena-layout .md-tena-field input.error {
	border-color: #d32f2f;
}

.md-tena-forgot-wrap {
	margin-top: 12.8px;
	padding-left: 13.45px;
	line-height: 19px;
}

/* Mantém o visual do Figma quando o navegador preenche e-mail/senha. */
.md-tena-layout .md-tena-field input:-webkit-autofill,
.md-tena-layout .md-tena-field input:-webkit-autofill:hover,
.md-tena-layout .md-tena-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--md-tena-text);
	-webkit-box-shadow: 0 0 0 1000px var(--md-tena-field) inset;
	box-shadow: 0 0 0 1000px var(--md-tena-field) inset;
	font-family: "Asap", sans-serif;
	font-size: 16.676px;
	transition: background-color 9999s ease-out 0s;
}

.md-tena-layout .md-tena-forgot {
	font-size: 16.676px;
	font-weight: 400;
	line-height: 19px;
	color: var(--md-tena-text);
	text-decoration: none;
}

.md-tena-layout .md-tena-forgot:hover {
	color: var(--md-tena-blue-dark);
	text-decoration: underline;
}

.md-tena-actions {
	display: flex;
	justify-content: center;
	margin-top: 27px;
}

.md-tena-layout .md-tena-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 136.428px;
	height: 47.4px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--md-tena-green);
	font-family: inherit;
	font-size: 16.676px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	box-shadow: none;
}

.md-tena-layout .md-tena-submit:hover {
	filter: brightness(0.92);
}

.md-tena-layout .md-tena-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.md-tena-message {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	text-align: center;
}

.md-tena-card > .md-tena-message:first-child {
	margin: -24px 0 20px;
}

.md-tena-message.success {
	background: #d4edda;
	color: #155724;
}

.md-tena-message.error {
	background: #f8d7da;
	color: #721c24;
}

.md-tena-layout .md-field-error {
	display: block;
	margin: 6px 0 0 22px;
	font-size: 12px;
	color: #d32f2f;
}

.md-tena-register {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 23.6px;
}

.md-tena-layout .md-tena-register p {
	margin: 0;
	font-size: 16px;
	line-height: 18.3px;
	color: #fff;
}

.md-tena-layout .md-tena-register-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 306.385px;
	max-width: 100%;
	height: 47.403px;
	margin-top: 37.8px;
	padding: 0 20px;
	border: 1.156px solid #fff;
	border-radius: 70.874px;
	background: transparent;
	font-size: 13.874px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	transition: background-color 0.2s ease;
}

.md-tena-layout .md-tena-register-link:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

/* ---------- Loading ---------- */

#md-loading {
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	background: rgba(28, 55, 139, 0.6);
}

#md-loading[style*="block"] {
	display: flex !important;
}

.md-loading-content {
	padding: 28px;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	color: var(--md-tena-text);
}

.md-loading-spinner {
	width: 38px;
	height: 38px;
	margin: 0 auto 10px;
	border: 4px solid #f3f3f3;
	border-top-color: var(--md-tena-green);
	border-radius: 50%;
	animation: md-tena-spin 1s linear infinite;
}

@keyframes md-tena-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Tablet / mobile: empilha (formulário primeiro) ---------- */

@media (max-width: 1199px) {
	.md-tena-grid {
		grid-template-columns: minmax(0, 459px);
		justify-content: center;
		row-gap: 56px;
		align-items: start;
		align-content: start;
		padding: calc(var(--md-tena-w) * 0.2625 + 16px) 24px 56px;
	}

	.md-tena-right {
		order: 1;
	}

	.md-tena-left {
		order: 2;
	}

	.md-tena-layout .md-tena-title {
		font-size: min(36px, 7vw);
	}

	.md-tena-layout .md-tena-subtitle {
		margin-top: 28px;
		font-size: min(38px, 8.5vw);
	}

	.md-tena-partners {
		margin-top: 56px;
	}
}

@media (max-width: 520px) {
	.md-tena-layout .md-tena-welcome {
		font-size: 24px;
		line-height: 28px;
	}

	.md-tena-layout .md-tena-intro {
		font-size: 19px;
		line-height: 23px;
	}

	.md-tena-card {
		padding: 36px 20px 32px;
	}

	.md-tena-form {
		margin-top: 32px;
	}

	.md-tena-badges {
		gap: 10px;
	}

	.md-tena-badge {
		padding: 0 20px;
	}
}
