/*
 * Telangana Tribune - front-end user area (login / register / dashboard).
 *
 * Extracted from two near-identical <style> blocks that were printed inline
 * by inc/user-backend.php on every auth page render. 35 of their 37 shared
 * selectors were byte-identical, so they are merged here once and loaded
 * only on pages that actually use the [tt_login]/[tt_register]/etc
 * shortcodes.
 */

.tt-auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #fff;
}

.tt-auth-wrapper {
	width: 100%;
	max-width: 1000px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.tt-auth-row {
	min-height: 600px;
}

.tt-auth-brand {
	background: linear-gradient(135deg, var(--tt-brand-color, #dc3545) 0%, #a71d2a 100%);
	color: #fff;
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tt-auth-brand-content {
	text-align: center;
}

.tt-auth-brand-logo {
	margin-bottom: 30px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

.tt-auth-brand-logo img {
	max-height: 60px;
	filter: brightness(0) invert(1);
	margin: 0 auto;
	display: block;
}

.tt-auth-brand-logo h1 {
	color: #fff;
	font-size: 28px;
	margin: 0;
}

.tt-auth-brand h2,
	.tt-auth-brand .tt-auth-welcome {
	font-size: 28px;
	margin-bottom: 15px;
	color: #fff !important;
}

.tt-auth-brand p {
	opacity: 0.9;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 30px;
}

.tt-auth-features {
	text-align: center;
}

.tt-auth-feature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
}

.tt-auth-feature i {
	font-size: 20px;
	opacity: 0.9;
}

.tt-auth-form-col {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.tt-auth-form-wrapper {
	width: 100%;
	max-width: 400px;
}

.tt-auth-header {
	margin-bottom: 30px;
}

.tt-auth-header h2 {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #333;
}

.tt-auth-form .form-label {
	font-weight: 500;
	color: #555;
	font-size: 14px;
}

.tt-auth-form .form-control {
	border-radius: 8px;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	transition: all 0.3s ease;
}

.tt-auth-form .form-control:focus {
	border-color: var(--tt-brand-color, #dc3545);
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.tt-auth-form .input-group .btn {
	border: 2px solid #e0e0e0;
	border-left: none;
	border-radius: 0 8px 8px 0;
}

.tt-auth-submit {
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.tt-auth-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.tt-auth-link {
	color: var(--tt-brand-color, #dc3545);
	text-decoration: none;
	transition: color 0.3s ease;
}

.tt-auth-link:hover {
	color: #a71d2a;
	text-decoration: underline;
}

.tt-auth-divider {
	position: relative;
	text-align: center;
	margin: 25px 0;
}

.tt-auth-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e0e0e0;
}

.tt-auth-divider span {
	background: #fff;
	padding: 0 15px;
	color: #999;
	font-size: 13px;
	position: relative;
}

.tt-auth-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f0;
	text-align: center;
}

[data-theme="dark"] .tt-auth-container {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .tt-auth-wrapper {
	background: #2d2d2d;
}

[data-theme="dark"] .tt-auth-header h2 {
	color: #fff;
}

[data-theme="dark"] .tt-auth-form .form-control {
	background: #3d3d3d;
	border-color: #4d4d4d;
	color: #fff;
}

[data-theme="dark"] .tt-auth-form .form-control:focus {
	border-color: var(--tt-brand-color, #dc3545);
}

[data-theme="dark"] .tt-auth-form .form-label {
	color: #ccc;
}

[data-theme="dark"] .tt-auth-divider::before {
	background: #4d4d4d;
}

[data-theme="dark"] .tt-auth-divider span {
	background: #2d2d2d;
	color: #888;
}

[data-theme="dark"] .tt-auth-footer {
	border-top-color: #3d3d3d;
}

[data-theme="dark"] .tt-auth-form .input-group .btn {
	background: #3d3d3d;
	border-color: #4d4d4d;
	color: #ccc;
}

.tt-auth-container {
	padding: 15px;
}

.tt-auth-form-col {
	padding: 30px 20px;
}

.tt-auth-row {
	min-height: auto;
}

/* ---- Registration page additions ---- */

.tt-auth-wrapper,
	.tt-auth-register-wrapper {
	width: 100%;
	max-width: 1000px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.tt-auth-errors {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.tt-auth-errors i {
	font-size: 18px;
	margin-top: 2px;
}

.tt-math-question {
	background: linear-gradient(135deg, var(--tt-brand-color, #dc3545) 0%, #a71d2a 100%);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	border: none;
}

.tt-password-strength,
	.tt-password-match {
	font-size: 12px;
	min-height: 18px;
}

.tt-password-strength span,
	.tt-password-match span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

[data-theme="dark"] .tt-auth-wrapper,
	[data-theme="dark"] .tt-auth-register-wrapper {
	background: #2d2d2d;
}

[data-theme="dark"] .tt-math-question {
	background: linear-gradient(135deg, var(--tt-brand-color, #dc3545) 0%, #a71d2a 100%);
}

[data-theme="dark"] .tt-auth-errors {
	background: rgba(220, 53, 69, 0.2);
	border-color: rgba(220, 53, 69, 0.4);
	color: #ff8a8a;
}

/* The register form is slightly wider and centres its header; scoped so the
   two pages keep their original appearance from a single stylesheet. */
.tt-auth-register-wrapper .tt-auth-form-wrapper {
	max-width: 450px;
}

.tt-auth-register-wrapper .tt-auth-header {
	text-align: center;
}
