/**
 * Auth Styles - pushconsole/customer/assets/auth.css
 * Authentication page styles using base.css color tokens
 */

/* Common (all auth pages) */

.pushconsole-auth-backdrop {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom, rgba(132, 125, 238, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
	padding: 50px 20px;
	min-height: 80vh;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pushconsole-auth-container {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}

.pushconsole-auth-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(132, 125, 238, 0.08) 100%);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(132, 125, 238, 0.3);
	border-radius: 24px;
	padding: 26px 40px;
	box-shadow: 0 4px 16px rgba(132, 125, 238, 0.15);
	position: relative;
	overflow: visible;
}

.pushconsole-auth-header {
	text-align: center;
	margin-bottom: 18px;
}

.pushconsole-brand-identity {
	display: flex;
	justify-content: center;
	margin-bottom: 1px;
}

.pushconsole-logo {
	max-width: 160px;
	height: auto;
}

.pushconsole-auth-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin: 0;
	background: linear-gradient(to right, var(--text-primary) 0%, var(--brand) 50%, var(--text-primary) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-transform: uppercase;
}

.pushconsole-subtitle {
	color: var(--text-secondary);
	font-size: 0.935rem;
	line-height: 1.6;
	margin: 0;
	font-weight: 500;
}

.pushconsole-subtitle strong {
	color: var(--brand);
	font-weight: 600;
}

.pushconsole-alert-wrapper {
	animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pushconsole-alert {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 0.875rem;
	line-height: 1.5;
	font-weight: 500;
	margin-bottom: 9px;
}

.pushconsole-alert:last-child {
	margin-bottom: 0;
}

.pushconsole-alert svg {
	flex-shrink: 0;
}

.pushconsole-alert-success {
	background: var(--success-bg);
	color: var(--success-dark);
	border-left: 3px solid var(--success);
}

.pushconsole-alert-error {
	background: var(--error-bg);
	color: var(--error-dark);
	border-left: 3px solid var(--error);
}

.pushconsole-auth-form {
	margin: 0 0 18px 0;
}

.pushconsole-field-group label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 6px;
	color: var(--text-secondary);
	opacity: 0.9;
}

.pushconsole-input-root {
	position: relative;
}

.pushconsole-input-root input {
	width: 100%;
	padding: 11px 12px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(132, 125, 238, 0.2);
	border-radius: 12px;
	font-size: 1rem;
	outline: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	color: var(--text-primary);
	font-family: inherit;
}

.pushconsole-input-root input:focus {
	border-color: var(--brand);
	border-width: 2px;
	padding: 10px 11px;
	box-shadow: 0 0 0 4px rgba(132, 125, 238, 0.1);
	background: var(--neutral-white);
}

.pushconsole-input-root input::placeholder {
	color: var(--text-muted);
}

.pushconsole-btn-primary {
	width: 100%;
	background: var(--brand) !important;
	color: var(--text-on-brand) !important;
	padding: 11px;
	border: none !important;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(132, 125, 238, 0.3);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: inherit;
}

.pushconsole-btn-primary:hover {
	background: var(--brand-hover) !important;
	color: #FFF !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(132, 125, 238, 0.28);
}

.pushconsole-btn-primary:active {
	transform: scale(0.985);
}

.pushconsole-btn-primary:disabled {
	background: var(--neutral-300);
	color: var(--neutral-500);
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.pushconsole-btn-primary:disabled:hover {
	background: var(--neutral-300);
	transform: none;
	box-shadow: none;
}

.pushconsole-btn-text {
	display: inline-block;
}

.pushconsole-auth-footer {
	text-align: center;
	margin-top: 18px;
}

.pushconsole-auth-footer p {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin: 0;
}

.pushconsole-auth-footer a {
	color: var(--brand);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s;
}

.pushconsole-auth-footer a:hover {
	color: var(--brand-hover);
	text-decoration: underline;
}

.pushconsole-auth-form input[type="hidden"] {
	display: none;
}

/* Login */

.pushconsole-options-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pushconsole-checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	margin: 0;
}

.pushconsole-checkbox-wrapper input[type="checkbox"] {
	width: auto;
	height: auto;
	cursor: pointer;
	accent-color: var(--brand);
	margin: 0;
}

.pushconsole-checkbox-label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.pushconsole-link-sm {
	font-size: 0.875rem;
	color: var(--brand);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s;
}

.pushconsole-link-sm:hover {
	color: var(--brand-hover);
	text-decoration: underline;
}

/* Signup */

.pushconsole-password-wrapper input {
	padding-right: 48px;
}

.pushconsole-password-wrapper input:focus {
	padding-right: 47px;
}

.pushconsole-toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s;
}

.pushconsole-toggle-password:hover {
	color: var(--brand);
}

.pushconsole-password-checklist {
	margin-top: 9px;
	padding: 0;
	background: none;
	border: none;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pushconsole-password-checklist.pushconsole-checklist-visible {
	max-height: 200px;
	opacity: 1;
}

.pushconsole-check {
	font-size: 0.815rem;
	line-height: 1.5;
	color: var(--text-muted);
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding-left: 0;
}

.pushconsole-check::before {
	content: "• ";
	margin-right: 6px;
	font-weight: 600;
}

.pushconsole-check.pushconsole-check-visible {
	max-height: 30px;
	opacity: 0.7;
}

/* Forgot Password */

.pushconsole-success-icon-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	background: var(--brand);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(132, 125, 238, 0.3);
}

.pushconsole-success-icon-wrapper svg {
	color: var(--text-on-brand);
}

.pushconsole-notice-box {
	padding: 14px 18px;
	background: rgba(132, 125, 238, 0.05);
	border-left: 3px solid rgba(132, 125, 238, 0.3);
	border-radius: 8px;
}

.pushconsole-notice-box p {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-secondary);
	margin: 0 0 8px 0;
}

.pushconsole-notice-box p:last-child {
	margin-bottom: 0;
}

.pushconsole-notice-box strong {
	color: var(--text-primary);
	font-weight: 600;
}

.pushconsole-success-footer {
	margin-top: 18px;
}

.pushconsole-success-footer .pushconsole-btn-primary {
	text-decoration: none;
	display: block;
}

/* Responsive */

@media (max-width: 480px) {
	.pushconsole-auth-backdrop {
		padding: 30px 16px;
	}

	.pushconsole-auth-card {
		padding: 32px 24px;
		border-radius: 20px;
	}

	.pushconsole-auth-header h1 {
		font-size: 1.5rem;
		letter-spacing: 0.3px;
	}

	.pushconsole-logo {
		max-width: 64px;
	}

	.pushconsole-options-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.pushconsole-btn-primary {
		padding: 14px;
		font-size: 0.95rem;
	}
}