/*
 * Overrides for the standalone login page.
 * Nextcloud's own CSS references absolute asset paths (/apps/theming/…, ../../core/…)
 * that don't exist here, so we repoint the few image variables actually used on /login
 * to our flat /img/ layout.
 */

:root {
	--image-background: url('/img/background.webp');
	--image-logo: url('/img/logo.svg');
}

/* Submit-button arrow (guest.css points it at ../img/actions/confirm-white.svg). */
.icon-confirm-white {
	background-image: url('/img/confirm-white.svg');
}

/* Password visibility toggle inside the password field group. */
.groupbottom {
	position: relative;
}
.toggle-password {
	position: absolute;
	inset-inline-end: 4px;
	top: 3px;
	height: 44px;
	width: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	line-height: 44px;
	opacity: .6;
}
.toggle-password:hover {
	opacity: 1;
}

.login-form__remember {
	margin-top: 14px;
	text-align: center;
}

.login-reset {
	display: inline-block;
	margin-top: 14px;
}

.login-alternatives {
	margin-top: 16px;
	text-align: center;
}
.login-passkey {
	width: 100%;
	padding: 12px;
}

/* Small shake animation reused for the "wrong password" feedback. */
@keyframes login-shake {
	10%, 90% { transform: translateX(-1px); }
	20%, 80% { transform: translateX(2px); }
	30%, 50%, 70% { transform: translateX(-4px); }
	40%, 60% { transform: translateX(4px); }
}
.login-box.shake {
	animation: login-shake .6s cubic-bezier(.36, .07, .19, .97) both;
}
