/* ========== RESET & BASE ========== */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary: #1a5c38;
	--primary-hover: #15482d;
	--primary-foreground: #faf8f5;
	--foreground: #2a2318;
	--foreground-80: rgba(42, 35, 24, 0.8);
	--muted-foreground: #7a7264;
	--background: #f7f5f0;/*#f7f5f0 - #f8f9fa  #D0D3D9*/
	--card: #ffffff;
	--secondary-50: rgba(237, 234, 228, 0.5);
	--border: #e5e1d9;
	--border-60: rgba(229, 225, 217, 0.6);
	--ring: #2d8a54;
	--radius: 0.75rem;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-serif: 'Playfair Display', Georgia, serif;
}

body {
	font-family: var(--font-sans);
	background-color: var(--background);
	color: var(--foreground);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}

/* ========== LAYOUT ========== */
.auth-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.auth-container {
	padding: 3rem;
	}
}

/* ========== FORM PANEL ========== */
.form-panel {
	width: 100%;
	max-width: 28rem;
}

/* Logo */
.app-logo {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 2.5rem;
	flex-direction: column;
}

.app-logo__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 8.5rem;
	height: 7.5rem;
	border-radius: 0.5rem;
	background: #f7f5f0;/*#f7f5f0 - #1a5c381a*/
}

.app-logo__icon img {
	width: 12.25rem;
	height: auto;/*10.25rem*/
	color: var(--primary);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.app-logo__text {
	font-size: 30px;
	font-weight: 700;
	color: var(--foreground);
	letter-spacing: -0.025em;
	display: flex;
	gap: 0;
	
}
.app-logo__text_canal {
	color: rgb(63 163 147);
}
.app-logo__text_saude {
	text-transform: uppercase;
	color: rgb(236 133 28);
}


/* Form header */
.form-header {
	margin-bottom: 2rem;
	text-align: center;
}

.form-header__title {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--foreground);
	letter-spacing: -0.025em;
}

.form-header__subtitle {
	color: var(--muted-foreground);
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

/* ========== FORM ELEMENTS ========== */
.form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.field__label {
	font-size: 0.875rem;
	color: var(--foreground-80);
	font-weight: 500;
}

.field__input-wrapper {
	position: relative;
}

.field__icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
	height: 1rem;
	color: var(--muted-foreground);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.field__input {
	width: 100%;
	height: 2.75rem;
	padding: 0 0.75rem 0 2.5rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--foreground);
	background: var(--secondary-50);
	border: 1px solid var(--border-60);
	border-radius: var(--radius);
	outline: none;
	transition: all 0.2s ease;
}

.field__input::placeholder {
	color: var(--muted-foreground);
}

.field__input:focus {
	background: var(--card);
	border-color: var(--ring);
	box-shadow: 0 0 0 2px rgba(45, 138, 84, 0.15);
}

.field__input--with-toggle {
	padding-right: 2.5rem;
}

.field__toggle {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--muted-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.2s;
}

.field__toggle:hover {
	color: var(--foreground);
}

.field__toggle svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Remember row */
.remember-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.remember-row__left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.remember-row__checkbox {
	appearance: none;
	width: 1rem;
	height: 1rem;
	border: 1px solid var(--border);
	border-radius: 0.25rem;
	background: var(--card);
	cursor: pointer;
	transition: all 0.15s;
	position: relative;
}

.remember-row__checkbox:checked {
	background: var(--primary);
	border-color: var(--primary);
}

.remember-row__checkbox:checked::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 4px;
	width: 5px;
	height: 9px;
	border: solid var(--primary-foreground);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.remember-row__checkbox:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.remember-row__label {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	cursor: pointer;
}

.link-button {
	background: none;
	border: none;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary);
	cursor: pointer;
	transition: color 0.2s;
	padding: 0;
}

.link-button:hover {
	color: var(--primary-hover);
}

/* Primary button */
.btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 2.75rem;
	margin-top: 0.5rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	color: var(--primary-foreground);
	background: var(--primary);
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-primary:active {
	transform: scale(0.99);
}

.btn-primary:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.btn-primary svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Outline button */
.btn-outline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	height: 2.75rem;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
	background: var(--secondary-50);
	border-color: var(--muted-foreground);
}

.btn-outline svg.google-icon {
	width: 1rem;
	height: 1rem;
}

/* Divider */
.divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 0;
}

.divider__line {
	flex: 1;
	height: 1px;
	background: var(--border);
}

.divider__text {
	font-size: 0.75rem;
	color: var(--muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Create account */
.create-account {
	text-align: center;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}

.create-account button {
	background: none;
	border: none;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
	cursor: pointer;
	transition: color 0.2s;
}

.create-account button:hover {
	color: var(--primary-hover);
}

/* Footer */
.footer-legal {
	text-align: center;
	font-size: 0.75rem;
	color: rgba(122, 114, 100, 0.6);
	margin-top: 2.5rem;
}

.footer-legal button {
	background: none;
	border: none;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	color: rgba(122, 114, 100, 0.6);
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s;
}

.footer-legal button:hover {
	color: var(--foreground);
}

/* ========== FORGOT PASSWORD ========== */
.forgot-description {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	line-height: 1.6;
}

.back-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: none;
	border: none;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--muted-foreground);
	cursor: pointer;
	transition: color 0.2s;
	padding: 0;
	width: 100%;
}

.back-link:hover {
	color: var(--foreground);
}

.back-link svg {
	width: 0.875rem;
	height: 0.875rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ========== SUCCESS STATE ========== */
.success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 1rem 0;
}

.success__icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(26, 92, 56, 0.1);
}

.success__icon-wrapper svg {
	width: 2rem;
	height: 2rem;
	color: var(--primary);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.success__text {
	text-align: center;
}

.success__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--foreground);
}

.success__description {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	line-height: 1.6;
	max-width: 20rem;
	margin-top: 0.5rem;
}

.success__description strong {
	font-weight: 500;
	color: var(--foreground);
}

.success__resend {
	background: none;
	border: none;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	color: var(--muted-foreground);
	cursor: pointer;
	transition: color 0.2s;
}

.success__resend:hover {
	color: var(--foreground);
}

/* ========== SPINNER ========== */
.spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(250, 248, 245, 0.3);
	border-top-color: var(--primary-foreground);
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

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

/* ========== VIEW TRANSITIONS ========== */
.view {
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
	opacity: 0;
	transform: translateY(8px);
	}
	to {
	opacity: 1;
	transform: translateY(0);
	}
}

.hidden {
	display: none !important;
}

/* ========== SCREEN READER ========== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
