/**
 * Login Page Styles for TAG Proposal theme.
 *
 * Minimal stylesheet — only loaded on the password login page.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Kill admin bar and any leftover WP spacing */
html {
	margin-top: 0 !important;
	padding: 0 !important;
}

#wpadminbar,
.tag-floating-admin {
	display: none !important;
}

body.tag-login-page {
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #050505;
	color: #fff;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-fill-color: unset !important;
}

/* Animated blob background */
.tag-login-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	filter: blur(120px);
}

.tag-login-bg__blob {
	position: absolute;
	border-radius: 50%;
	will-change: transform;
}

/* Blue blob — large, top-right drift */
.tag-login-bg__blob--blue {
	width: 60vmax;
	height: 60vmax;
	background: radial-gradient(circle, rgba(0, 47, 220, 0.35) 0%, rgba(0, 47, 220, 0) 70%);
	top: -15%;
	right: -10%;
	animation: blobDrift1 55s ease-in-out infinite;
}

/* Red blob — medium, bottom-left drift */
.tag-login-bg__blob--red {
	width: 50vmax;
	height: 50vmax;
	background: radial-gradient(circle, rgba(210, 45, 54, 0.3) 0%, rgba(210, 45, 54, 0) 70%);
	bottom: -20%;
	left: -10%;
	animation: blobDrift2 65s ease-in-out infinite;
}

/* Smaller accent blob — center area */
.tag-login-bg__blob--mix {
	width: 35vmax;
	height: 35vmax;
	background: radial-gradient(circle, rgba(0, 47, 220, 0.15) 0%, rgba(210, 45, 54, 0.1) 40%, transparent 70%);
	top: 30%;
	left: 30%;
	animation: blobDrift3 45s ease-in-out infinite;
}

/* Blue: hugs edges — top-right → far bottom-left → far top-left → far right → home */
@keyframes blobDrift1 {
	0%    { transform: translate(0, 0) scale(1); }
	15%   { transform: translate(-45vw, 50vh) scale(1.1); }
	30%   { transform: translate(-50vw, -35vh) scale(0.85); }
	50%   { transform: translate(20vw, -40vh) scale(1.15); }
	65%   { transform: translate(30vw, 45vh) scale(0.9); }
	80%   { transform: translate(-40vw, 30vh) scale(1.05); }
	100%  { transform: translate(0, 0) scale(1); }
}

/* Red: hugs edges — bottom-left → far top-right → far right → far bottom → home */
@keyframes blobDrift2 {
	0%    { transform: translate(0, 0) scale(1); }
	14%   { transform: translate(45vw, -50vh) scale(1.1); }
	28%   { transform: translate(50vw, 10vh) scale(0.9); }
	42%   { transform: translate(-10vw, -45vh) scale(1.15); }
	56%   { transform: translate(-45vw, -30vh) scale(0.85); }
	70%   { transform: translate(35vw, 40vh) scale(1.1); }
	85%   { transform: translate(-30vw, 50vh) scale(0.9); }
	100%  { transform: translate(0, 0) scale(1); }
}

/* Mix: sweeps edges in wide arcs */
@keyframes blobDrift3 {
	0%    { transform: translate(0, 0) scale(1); }
	12%   { transform: translate(35vw, -40vh) scale(1.2); }
	25%   { transform: translate(-40vw, -35vh) scale(0.85); }
	37%   { transform: translate(-35vw, 40vh) scale(1.1); }
	50%   { transform: translate(40vw, 35vh) scale(0.9); }
	62%   { transform: translate(30vw, -45vh) scale(1.15); }
	75%   { transform: translate(-45vw, -10vh) scale(0.8); }
	87%   { transform: translate(-20vw, 45vh) scale(1.1); }
	100%  { transform: translate(0, 0) scale(1); }
}

.tag-login-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
	position: relative;
	z-index: 1;
}

.tag-login-card {
	width: 100%;
	max-width: 400px;
	animation: loginFadeIn 0.6s ease-out;
}

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

/* Logo */
.tag-login-logo {
	text-align: center;
	margin-bottom: 48px;
}

.tag-login-logo svg {
	width: 72px;
	height: auto;
	opacity: 0.9;
}

.tag-login-client {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin-top: 20px;
	letter-spacing: 0.01em;
	-webkit-text-fill-color: #fff !important;
}

.tag-login-date {
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
	font-weight: 500;
	margin-top: 6px;
	letter-spacing: 0.02em;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
}

/* Form */
.tag-login-form {
	width: 100%;
}

.tag-login-label {
	display: block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 8px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
}

/* Input wrapper */
.tag-login-input-wrap {
	position: relative;
	margin-bottom: 8px;
}

.tag-login-input {
	width: 100%;
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 14px 48px 14px 16px;
	font-size: 15px;
	font-family: inherit;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	outline: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tag-login-input::placeholder {
	color: rgba(255, 255, 255, 0.25);
	-webkit-text-fill-color: rgba(255, 255, 255, 0.25) !important;
}

.tag-login-input:focus {
	border-color: #002fdc;
	background: rgba(255, 255, 255, 0.1) !important;
}

.tag-login-input-wrap.has-error .tag-login-input {
	border-color: #d22d36;
}

/* Password toggle */
.tag-login-toggle-pw {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.4;
	transition: opacity 0.15s ease;
}

.tag-login-toggle-pw:hover {
	opacity: 0.7;
}

.tag-login-toggle-pw svg {
	stroke: #fff;
}

/* Error message */
.tag-login-error {
	color: #f87171;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 8px;
	-webkit-text-fill-color: #f87171 !important;
}

/* Actions row */
.tag-login-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
}

/* Remember me checkbox */
.tag-login-remember {
	display: flex;
	align-items: center;
	cursor: pointer;
	gap: 8px;
	user-select: none;
}

.tag-login-remember input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tag-login-checkbox {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.25);
	border-radius: 4px;
	background: transparent;
	transition: all 0.15s ease;
	position: relative;
	flex-shrink: 0;
}

.tag-login-remember input:checked + .tag-login-checkbox {
	background: #002fdc;
	border-color: #002fdc;
}

.tag-login-remember input:checked + .tag-login-checkbox::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.tag-login-remember-text {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
	font-weight: 500;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
}

/* Submit button */
.tag-login-submit {
	background: #002fdc;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 13px 32px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s ease;
}

.tag-login-submit:hover {
	background: #0024b0;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0, 47, 220, 0.3);
}

.tag-login-submit:active {
	background: #001a88;
	transform: translateY(0);
}

/* Footer text (optional) */
.tag-login-footer {
	text-align: center;
	margin-top: 48px;
	color: rgba(255, 255, 255, 0.2);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.2) !important;
}
