.rdev-login-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 16px;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.3s ease;
	z-index: 99999;
}

.rdev-login-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.rdev-login-modal__overlay {
	background: rgba(0, 0, 0, 0.55);
	inset: 0;
	position: absolute;
}

.rdev-login-modal__content {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	max-height: calc(100vh - 32px);
	max-width: 420px;
	overflow-y: auto;
	padding: 28px;
	position: relative;
	transform: scale(0.92) translateY(12px);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
}

.rdev-login-modal.is-open .rdev-login-modal__content {
	transform: scale(1) translateY(0);
}

.rdev-login-modal__close {
	align-items: center;
	background: none;
	border: none;
	border-radius: 8px;
	color: #8a8494;
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 12px;
	top: 12px;
	transition: color 0.2s ease, background 0.2s ease;
	width: 36px;
}

.rdev-login-modal__close:hover {
	background: #f6f1fb;
	color: #171321;
}

.rdev-login-modal__title {
	color: #171321;
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	text-align: center;
}

.rdev-login-modal__subtitle {
	color: #8a8494;
	font-size: 14px;
	margin: 6px 0 18px;
	text-align: center;
}

.rdev-login-modal__form {
	display: grid;
	gap: 12px;
}

.rdev-login-modal__field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.rdev-login-modal__field label {
	color: #5d5868;
	font-size: 13px;
	font-weight: 600;
}

.rdev-login-modal__field input[type="text"],
.rdev-login-modal__field input[type="password"] {
	appearance: none;
	background: #faf9fb;
	border: 1px solid #d7cedf;
	border-radius: 8px;
	color: #171321;
	font-size: 15px;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.rdev-login-modal__field input[type="text"]:focus,
.rdev-login-modal__field input[type="password"]:focus {
	border-color: #7b5cbf;
	box-shadow: 0 0 0 3px rgba(123, 92, 191, 0.12);
	outline: none;
}

.rdev-login-modal__field--checkbox label {
	align-items: center;
	color: #5d5868;
	display: inline-flex;
	font-size: 13px;
	gap: 8px;
}

.rdev-login-modal__field--checkbox input[type="checkbox"] {
	accent-color: #7b5cbf;
	cursor: pointer;
	height: 16px;
	width: 16px;
}

.rdev-login-modal__submit {
	margin: 4px 0 0;
}

.rdev-login-modal__button {
	align-items: center;
	appearance: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	min-height: 46px;
	padding: 10px 16px;
	transition: box-shadow 0.16s ease, transform 0.16s ease;
	width: 100%;
}

.rdev-login-modal__button--primary {
	background: #7b5cbf;
	color: #fff;
}

.rdev-login-modal__button--primary:hover {
	background: #6a4eb0;
	box-shadow: 0 6px 16px rgba(123, 92, 191, 0.25);
	transform: translateY(-1px);
}

.rdev-login-modal__button:disabled {
	cursor: wait;
	opacity: 0.65;
	transform: none;
}

.rdev-login-modal__links {
	align-items: center;
	color: #8a8494;
	display: flex;
	font-size: 13px;
	gap: 10px;
	justify-content: center;
	margin-top: 16px;
}

.rdev-login-modal__links a {
	color: #7b5cbf;
	font-weight: 600;
	text-decoration: none;
}

.rdev-login-modal__links a:hover {
	text-decoration: underline;
}

.rdev-login-modal__links-separator {
	color: #d7cedf;
}

@media (max-width: 480px) {
	.rdev-login-modal__content {
		border-radius: 12px;
		padding: 22px 18px;
	}

	.rdev-login-modal__title {
		font-size: 20px;
	}
}

/* Popup rápido de login */
.rdev-quick-login-popup {
	position: absolute;
	z-index: 99998;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rdev-quick-login-popup.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.rdev-quick-login-popup__arrow {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
	z-index: 1;
}

.rdev-quick-login-popup__content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	padding: 16px;
	width: 260px;
	z-index: 2;
}

.rdev-quick-login-popup__text {
	color: #5d5868;
	font-size: 12px;
	margin: 0 0 10px;
	text-align: center;
}

.rdev-quick-login-popup .rdev-google-login-button {
	width: 100%;
	min-height: 40px;
	font-size: 14px;
}

.rdev-quick-login-popup__email-link {
	color: #7b5cbf;
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-top: 10px;
	text-align: center;
	text-decoration: none;
}

.rdev-quick-login-popup__email-link:hover {
	text-decoration: underline;
}
