/* Estilos da Página de Login Frontend — Doce Acordo */

.login-page {
	min-height: calc(100vh - 160px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 5vw, 4rem) 1rem;
	background: linear-gradient(145deg, #fff8f4, #f7e8e6);
}

.login-shell {
	width: min(100%, 460px);
	margin: 0 auto;
	padding: clamp(1.75rem, 5vw, 2.5rem);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 18px 60px rgba(72, 39, 39, 0.12);
	border: 1px solid rgba(234, 222, 216, 0.8);
}

.login-header {
	text-align: center;
	margin-bottom: 1.75rem;
}

.login-brand-logo {
	display: inline-block;
	text-decoration: none;
	margin-bottom: 1rem;
}

.login-brand-logo .brand-text {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #9d4f5c;
}

.login-brand-logo .brand-text span {
	font-weight: 300;
}

.login-header h1 {
	margin: 0 0 0.5rem;
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--color-text, #2d2420);
	line-height: 1.25;
}

.login-subtitle {
	margin: 0;
	font-size: 0.95rem;
	color: var(--color-muted, #756761);
	line-height: 1.45;
}

.login-message {
	display: none;
	margin-bottom: 1.5rem;
	padding: 0.85rem 1.1rem;
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.login-message.is-error {
	background: #fdf2f2;
	color: #c5221f;
	border: 1px solid #f8d7da;
}

.login-message.is-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.login-field {
	margin-bottom: 1.25rem;
}

.login-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text, #2d2420);
}

.login-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.4rem;
}

.login-label-row label {
	margin-bottom: 0;
}

.login-forgot-link {
	font-size: 0.85rem;
	color: var(--color-primary, #9d4f5c);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.login-forgot-link:hover {
	color: #7d3b46;
	text-decoration: underline;
}

.login-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.login-input-wrap .input-icon {
	position: absolute;
	left: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #a0938d;
	pointer-events: none;
}

.login-input {
	width: 100%;
	padding: 0.8rem 1rem 0.8rem 2.75rem;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--color-text, #2d2420);
	background: #faf7f5;
	border: 1px solid #eaded8;
	border-radius: 12px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-input:focus {
	background: #ffffff;
	border-color: var(--color-primary, #9d4f5c);
	box-shadow: 0 0 0 3px rgba(157, 79, 92, 0.15);
}

.password-toggle {
	position: absolute;
	right: 0.75rem;
	background: none;
	border: none;
	padding: 0.4rem;
	color: #a0938d;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover {
	color: var(--color-primary, #9d4f5c);
	background: rgba(157, 79, 92, 0.08);
}

.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.remember-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--color-muted, #756761);
	cursor: pointer;
	user-select: none;
}

.remember-label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--color-primary, #9d4f5c);
	border-radius: 4px;
	cursor: pointer;
}

.login-submit-button {
	width: 100%;
	padding: 0.9rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	color: #ffffff;
	background: var(--color-primary, #9d4f5c);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 6px 20px rgba(157, 79, 92, 0.3);
	transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-submit-button:hover {
	background: #853e4a;
	box-shadow: 0 8px 24px rgba(157, 79, 92, 0.4);
}

.login-submit-button:active {
	transform: translateY(1px);
}

.login-submit-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.btn-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: login-spin 0.6s linear infinite;
}

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

.login-footer-action {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eaded8;
	text-align: center;
	font-size: 0.92rem;
	color: var(--color-muted, #756761);
}

.login-footer-action p {
	margin: 0;
}

.login-footer-action a {
	color: var(--color-primary, #9d4f5c);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.login-footer-action a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.login-shell {
		padding: 1.5rem;
		border-radius: 16px;
	}
	.login-header h1 {
		font-size: 1.45rem;
	}
}
