* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--slate-50: 248, 250, 252;
	--slate-100: 241, 245, 249;
	--slate-200: 226, 232, 240;
	--slate-300: 203, 213, 225;
	--slate-400: 148, 163, 184;
	--slate-500: 100, 116, 139;
	--slate-600: 71, 85, 105;
	--slate-700: 51, 65, 85;
	--slate-800: 30, 41, 59;
	--slate-900: 15, 23, 42;
	--slate-950: 2, 6, 23;
}

body {
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;
	min-height: 100vh;
	display: flex;
	position: relative;
	background-color: rgb(var(--background-color));
	background-position: bottom left;
}

/* Background decorative elements */
body::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 1804px;
	height: 736px;
	background: var(--background-image) no-repeat center center;
	max-width: 100%;
}

/* Validation error styles */
.validation-error {
	color: #ef4444;
	font-size: 14px;
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.validation-error::before {
	content: "⚠";
}

.form-input.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Reset Success Banner */

.success-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f0fdf4;
	border: 1px solid rgba(60, 135, 59, 0.5);
	color: #3c863b;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 24px;
	letter-spacing: -0.025em;
	font-size: 14px;
	font-weight: 600;
	animation: slideIn 0.3s ease-out;
}

.banner-icon {
	display: inline-flex;
	align-self: center;
	font-size: 20px;
	flex-shrink: 0;
}

.banner-content p {
	margin: 0;
	color: #3c863b;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.banner-close {
	background: none;
	border: none;
	color: #0369a1;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	flex-shrink: 0;
}

.banner-close:hover {
	background: rgba(3, 105, 161, 0.1);
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wrapper {
	position: relative;
	width: 100%;
	height: inherit;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.container {
	position: relative;
	width: 100%;
	max-width: 1420px;
	margin: 0 auto;
	padding: 32px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
}

.logo {
	margin-top: 30px;
}

.box-form {
	background: white;
	padding: 32px;
	border-radius: 8px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 620px;
	position: relative;
	z-index: 5;
    margin-top: 42px;
}

.code-sent-info {
	background: #ecfdf5;
	border: 1px solid #d1fae5;
	padding: 15px;
	border-radius: 12px;
	margin: 20px 0 30px 0;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.code-sent-info .phone-icon {
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

.code-sent-info p {
	margin: 0;
	color: #065f46;
	font-size: 14px;
	line-height: 1.4;
}

.code-inputs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	justify-content: center;
	margin-bottom: 30px;
}

.code-input {
	width: 100%;
	height: 102px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	background: #f9fafb;
	transition: all 0.3s ease;
}

.code-input:focus {
	outline: none;
	border-color: #6366f1;
	background: white;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.code-input.filled {
	border-color: #10b981;
	background: white;
	color: #059669;
}

.resend-code {
	margin: 20px 0;
	color: rgb(var(--slate-600));
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.025em;
}

.resend-button {
	background: none;
	border: none;
	color: rgb(var(--primary-color));
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	padding: 0;
}

.resend-button:hover {
	text-decoration: underline;
}

.message-banner {
	background: rgb(var(--slate-100));
	border: 1px solid rgb(var(--slate-300));
	color: rgb(var(--slate-600));
	padding: 20px;
	border-radius: 8px;
	margin: 0 0 16px 0;
	display: flex;
	align-items: flex-start;
	gap: 15px;
}
.message-icon {
	font-size: 24px;
	flex-shrink: 0;
	color: rgb(var(--slate-700));
	display: inline-flex;
	align-self: center;
}

.message-content p {
	margin: 0;
	color: rgb(var(--slate-600));
	font-size: 14px;
	line-height: 1.5em;
	font-weight: 600;
	letter-spacing: -0.025em;
}
.message-content p strong {
	color: rgb(var(--slate-800));
	font-weight: 600;
}

.back-to-login {
	margin-top: 32px;
}
.back-to-login button {
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.login-header {
	margin-bottom: 30px;
}

.login-header h1 {
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: rgb(var(--slate-800));
	margin-bottom: 8px;
}

.login-header p {
	color: rgb(var(--primary-point));
	font-size: 14px;
	letter-spacing: -0.025em;
	font-weight: 600;
}
.login-header p.subtitle {
	color: rgb(var(--slate-600));
	font-size: 18px;
	letter-spacing: -0.025em;
	font-weight: 600;
	line-height: 1.5;
}
.login-header p.subtitle strong {
	color: rgb(var(--slate-800));
	font-weight: 600;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: rgb(var(--slate-600));
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.025em;
}

.form-input {
	/* Layout */
	width: 100%;
	min-width: 0;
	display: flex;

	/* Spacing */
	padding: 12px 16px;
	height: 48px;

	/* Appearance */
	background: rgb(var(--slate-100));
	border: 1px solid rgba(var(--slate-400), 0.25);
	border-radius: 6px;

	/* Typography */
	font-size: 16px;
	font-weight: 600;

	color: rgb(var(--slate-600));

	/* Effects */
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: color 0.2s ease, box-shadow 0.2s ease;
	outline: none;

	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;
}

.form-input::placeholder {
	color: rgb(var(--slate-400));
}

.form-input::selection {
	background: rgb(var(--primary-color));
	color: white;
}

.form-input:focus {
	outline: none;
	border-color: rgb(var(--primary-color));
	box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

.form-input:disabled {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.5;
}

@media (min-width: 768px) {
	.form-input {
		font-size: 14px;
	}
}

.password-container {
	position: relative;
}

.password-toggle {
	position: absolute;
	height: 24px;
	right: 12px;
	top: 12px;
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	font-size: 18px;
}

.forgot-password {
	text-align: right;
}

.label-password {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.label-password label {
	margin-bottom: 0;
}
.forgot-password a {
	color: rgb(var(--primary-color));
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
}

.forgot-password a:hover {
	text-decoration: underline;
}

.checkbox-container {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.checkbox-container input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #6366f1;
}

.checkbox-container label {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

.recaptcha-container {
	margin-bottom: 16px;
	padding: 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	display: flex;
	align-items: center;
	gap: 12px;
}

.recaptcha-checkbox {
	width: 24px;
	height: 24px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	position: relative;
}

.recaptcha-checkbox::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #10b981;
	font-weight: bold;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.recaptcha-checkbox.checked {
	border-color: #10b981;
	background: #f0fdf4;
}

.recaptcha-checkbox.checked::after {
	opacity: 1;
}

.recaptcha-text {
	flex: 1;
}

.recaptcha-text p {
	font-size: 14px;
	color: #374151;
	margin: 0;
}

.recaptcha-text small {
	font-size: 12px;
	color: #6b7280;
}

.signup-link {
	display: flex;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: rgb(var(--slate-600));
	letter-spacing: -0.025em;
	margin: 30px 0;
}

.signup-link a:hover {
	text-decoration: underline;
}

button {
	font-family: inherit;
}

.btn-primary {
	/* Layout */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	white-space: nowrap;
	flex-shrink: 0;

	/* Sizing */
	height: 40px;
	padding: 24px;

	/* Appearance */
	background: rgb(var(--primary-color));
	color: rgb(var(--primary-button-text-color));
	border: none;
	border-radius: 6px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);

	/* Typography */
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.025em;

	/* Interactions */
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
}

.btn-primary:hover {
	background: rgba(var(--primary-color), 0.9);
}

.btn-primary:focus-visible {
	border-color: rgb(var(--primary-color));
	box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

.btn-primary:disabled {
	pointer-events: none;
	opacity: 0.5;
}

.btn-primary svg {
	pointer-events: none;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgb(var(--primary-color));
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.025em;
}
button.btn-ghost {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.btn-ghost svg {
	width: 16px;
	height: 16px;
}
.app-download {
	display: flex;
	gap: 24px;
	background: #f3f4f6;
	padding: 20px;
	border-radius: 12px;
	text-align: left;
}

.app-download h3 {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: rgb(var(--slate-600));
	margin-bottom: 8px;
}

.app-download p {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: rgb(var(--slate-500));
	margin-bottom: 15px;
}

.store-buttons {
	display: flex;
	width: 100%;
	gap: 8px;
	justify-content: start;
}

.footer-container {
	max-width: 1420px;
	padding: 24px;
	margin: auto auto 0 auto;
}
.footer-text {
	margin-top: auto;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	text-align: center;
	z-index: 10;
}

.footer-text a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}

@media (max-width: 999px) {
	.container {
		flex-direction: column;
		align-items: center;
		padding: 24px;
	}

	.box-form {
		width: 100%;
		max-width: 100%;
		padding: 24px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 16px;
	}
	.phone-info,
	.code-sent-info,
	.success-info {
		padding: 15px;
		gap: 10px;
	}

	.phone-icon,
	.success-icon {
		font-size: 20px;
	}

	.code-inputs {
		gap: 8px;
	}

	.code-input {
		width: 45px;
		height: 45px;
		font-size: 16px;
	}
}
/* .flash-content {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
    padding: 2rem;
} */
.alert.alert-fixed{
    padding: 30px;
    background: #FFF;
    border-radius: 16px;
    box-shadow: #0003 8px 8px 12px 0px;
    position: relative;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.alert.alert-fixed.alert-danger{
    /* background: #f8d7da; */
    border: 1px solid #f5c6cb;
    color: #721c24;
}


.alert.alert-fixed .btn-close{
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: transparent;
    border: none;
}
.alert.alert-fixed .btn-close:before{
    content: "Fechar";
    color: #000;
    cursor: pointer;
}
.alert.alert-fixed .btn-close:before:hover{
    text-decoration: underline;
}
.alert.alert-fixed .btn-close:before:focus{
    outline: none;
}
.alert.alert-fixed .btn-close:before:active{
    background: transparent;
}
.submit-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
	/* medai para celulares centralizado horizontalmente */
	@media (max-width: 480px) {
		flex-direction: column;
		gap: 10px;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: 100%;
		padding: 10px;
		margin-top: 10px;
	}
}
@media (max-width: 480px) {
	.app-download-icon{
		display: none;
	}
}