/* Modal compacto — login / cadastro */

.auth-card {
	background: #fff;
	border-radius: 14px;
	padding: 22px 20px 20px;
	width: 100%;
	max-width: 320px;
	box-shadow:
		0 20px 50px rgba(15, 23, 42, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
	border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-card__header {
	text-align: center;
	margin-bottom: 16px;
}

.auth-card__logo {
	width: 88px;
	height: auto;
	margin: 0 auto 10px;
	display: block;
}

.auth-card__logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}

.auth-card h1 {
	color: #0f172a;
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 2px;
	letter-spacing: -0.02em;
}

.auth-card .auth-card__subtitle {
	color: #64748b;
	font-size: 12px;
	font-weight: 400;
}

.auth-card .form-group {
	margin-bottom: 11px;
}

.auth-card label {
	display: block;
	color: #475569;
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"] {
	width: 100%;
	padding: 9px 11px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #0f172a;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input::placeholder {
	color: #94a3b8;
}

.auth-card input:focus {
	outline: none;
	border-color: #3b82f6;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.auth-card .btn-primary {
	width: 100%;
	padding: 11px 14px;
	margin-top: 4px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border: none;
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .btn-primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.auth-card .btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.auth-card .auth-footer-link {
	text-align: center;
	margin-top: 14px;
	font-size: 12px;
	color: #64748b;
}

.auth-card .auth-footer-link a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.auth-card .auth-footer-link a:hover {
	text-decoration: underline;
}

.auth-card .error-message {
	color: #ef4444;
	font-size: 11px;
	margin-top: 3px;
	opacity: 0;
	transform: translateY(-3px);
	transition: all 0.2s ease;
}

.auth-card .error-message.show {
	opacity: 1;
	transform: translateY(0);
}

.auth-card .form-group.error input {
	border-color: #ef4444;
	background: #fef2f2;
}

.auth-card .btn-loading .btn-text {
	opacity: 0;
}

.auth-card .spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: authSpin 0.7s linear infinite;
	opacity: 0;
}

.auth-card .btn-loading .spinner {
	opacity: 1;
}

@keyframes authSpin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}
