/**
 * Authentication forms (login / register) — Work Activity Tracker.
 *
 * @package WorkActivityTracker
 */

.wat-auth-wrap {
	max-width: 480px;
	margin: 40px auto;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wat-auth-card {
	background: #fff;
	border-radius: 12px;
	padding: 36px 40px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.wat-auth-title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	color: #1d2327;
	text-align: center;
}

.wat-auth-subtitle {
	margin: 0 0 26px;
	color: #646970;
	font-size: 14px;
	text-align: center;
}

/* ── Alerts ───────────────────────────────── */

.wat-auth-alert {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 20px;
}

.wat-auth-alert--error {
	background: #fce8e6;
	color: #a50e0e;
	border: 1px solid #ef9a9a;
}

.wat-auth-alert-list {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}

/* ── Form fields ──────────────────────────── */

.wat-auth-form { display: flex; flex-direction: column; gap: 16px; }

.wat-auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.wat-auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 6px;
}

.wat-auth-field input[type="text"],
.wat-auth-field input[type="email"],
.wat-auth-field input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wat-auth-field input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.wat-auth-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #8c8f94;
}

.wat-required {
	color: #d63638;
	font-weight: 700;
}

/* ── Remember + Forgot row ────────────────── */

.wat-auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: -4px;
	flex-wrap: wrap;
	gap: 8px;
}

.wat-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #646970;
	cursor: pointer;
}

.wat-auth-link {
	color: #2271b1;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.wat-auth-link:hover { text-decoration: underline; color: #135e96; }

/* Privacy-policy consent block */
.wat-auth-consent {
	margin: 8px 0 4px;
	padding: 12px 14px;
	background: #f6f9fc;
	border: 1px solid #eef2f6;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.45;
}

.wat-auth-consent .wat-auth-check {
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.wat-auth-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.wat-auth-consent a { color: #2271b1; font-weight: 600; }

/* ── Submit button ────────────────────────── */

.wat-auth-btn {
	padding: 12px 20px;
	background: linear-gradient(135deg, #2271b1, #135e96);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
	font-family: inherit;
	margin-top: 6px;
}

.wat-auth-btn:hover {
	background: linear-gradient(135deg, #135e96, #0a4b78);
}

.wat-auth-btn:active {
	transform: translateY(1px);
}

/* ── Footer link ──────────────────────────── */

.wat-auth-footer {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #eef2f6;
	text-align: center;
	color: #646970;
	font-size: 14px;
}

/* ── Honey-pot (hidden from users) ─────────── */

.wat-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 540px) {
	.wat-auth-wrap { margin: 16px 12px; }
	.wat-auth-card { padding: 22px 18px; }
	.wat-auth-grid { grid-template-columns: 1fr; gap: 0; }
	.wat-auth-title { font-size: 22px; }
	.wat-auth-btn { width: 100%; min-height: 44px; }

	/* Stack the "remember me / forgot password" row */
	.wat-auth-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
