/**
 * QipQop Trader — Auth page styles
 *
 * Scoped under .qqt-auth so they don't leak into other front-end content.
 * Dark theme matching the public homepage.
 */

.qqt-auth {
	--qqt-bg:           #050811;
	--qqt-surface:      #0F1624;
	--qqt-surface-2:    #141B2B;
	--qqt-border:       #1F2940;
	--qqt-border-strong: #2A3552;
	--qqt-text:         #EAEEF6;
	--qqt-text-muted:   #8A93A8;
	--qqt-text-dim:     #5D6579;
	--qqt-accent:       #3B7BFF;
	--qqt-accent-hover: #5B97FF;
	--qqt-accent-soft:  rgba(59, 123, 255, 0.1);
	--qqt-green:        #00C58A;
	--qqt-green-soft:   rgba(0, 197, 138, 0.12);
	--qqt-red:          #F04444;
	--qqt-red-soft:     rgba(240, 68, 68, 0.12);
	background: radial-gradient(ellipse at top, #0A1429 0%, #050811 50%);
	color: var(--qqt-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	box-sizing: border-box;
}

.qqt-auth *, .qqt-auth *::before, .qqt-auth *::after { box-sizing: border-box; }

.qqt-auth-card {
	width: 100%;
	max-width: 440px;
	background: var(--qqt-surface);
	border: 1px solid var(--qqt-border);
	border-radius: 16px;
	padding: 40px 36px 32px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	position: relative;
}
.qqt-auth-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--qqt-accent), transparent);
	opacity: 0.4;
}

.qqt-auth-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--qqt-text-muted);
	margin-bottom: 28px;
}
.qqt-auth-brand-mark {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00D4A0 0%, #00A876 100%);
	color: #050811;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 20px rgba(0, 168, 118, 0.25);
}
.qqt-auth-brand-mark svg { width: 18px; height: 18px; }
.qqt-auth-brand-text { color: var(--qqt-text); }

.qqt-auth-title {
	font-family: 'Instrument Serif', Georgia, serif;
	font-size: 36px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 8px;
	color: var(--qqt-text);
}
.qqt-auth-intro {
	color: var(--qqt-text-muted);
	font-size: 14px;
	margin: 0 0 28px;
	line-height: 1.5;
}

.qqt-auth-messages { margin-bottom: 16px; }
.qqt-auth-messages:empty { margin-bottom: 0; }
.qqt-auth-msg {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	border-left: 3px solid;
}
.qqt-auth-msg.error   { background: var(--qqt-red-soft);   border-left-color: var(--qqt-red);   color: #FFB8B8; }
.qqt-auth-msg.success { background: var(--qqt-green-soft); border-left-color: var(--qqt-green); color: #B8FFE0; }

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

.qqt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.qqt-field-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--qqt-text-muted);
	text-transform: uppercase;
}
.qqt-field input[type="text"],
.qqt-field input[type="email"],
.qqt-field input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	background: var(--qqt-surface-2);
	border: 1px solid var(--qqt-border);
	border-radius: 8px;
	color: var(--qqt-text);
	font-family: inherit;
	font-size: 15px;
	transition: border-color 0.15s, background 0.15s;
	outline: none;
}
.qqt-field input:focus {
	border-color: var(--qqt-accent);
	background: var(--qqt-surface);
	box-shadow: 0 0 0 3px var(--qqt-accent-soft);
}
.qqt-field-hint {
	font-size: 11px;
	color: var(--qqt-text-dim);
	line-height: 1.4;
}

.qqt-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--qqt-text-muted);
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}
.qqt-checkbox input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: var(--qqt-accent);
	cursor: pointer;
}
.qqt-checkbox a {
	color: var(--qqt-accent);
	text-decoration: none;
}
.qqt-checkbox a:hover { text-decoration: underline; }

.qqt-auth-submit {
	width: 100%;
	padding: 13px 20px;
	margin-top: 8px;
	background: var(--qqt-accent);
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	box-shadow: 0 4px 20px rgba(59, 123, 255, 0.25);
}
.qqt-auth-submit:hover { background: var(--qqt-accent-hover); box-shadow: 0 6px 24px rgba(59, 123, 255, 0.4); }
.qqt-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.qqt-auth-submit.loading .qqt-auth-submit-label { opacity: 0.4; }
.qqt-auth-submit-spinner {
	display: none;
	position: absolute;
	width: 18px; height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: qqt-spin 0.7s linear infinite;
}
.qqt-auth-submit.loading .qqt-auth-submit-spinner { display: block; }
@keyframes qqt-spin { to { transform: rotate(360deg); } }

.qqt-auth-small {
	text-align: center;
	margin: 14px 0 0;
	font-size: 13px;
}
.qqt-auth-small a {
	color: var(--qqt-text-muted);
	text-decoration: none;
	transition: color 0.15s;
}
.qqt-auth-small a:hover { color: var(--qqt-accent); }

.qqt-auth-alt {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--qqt-border);
	text-align: center;
	font-size: 13px;
	color: var(--qqt-text-muted);
}
.qqt-auth-alt a {
	color: var(--qqt-accent);
	text-decoration: none;
	font-weight: 500;
	margin-left: 4px;
}
.qqt-auth-alt a:hover { color: var(--qqt-accent-hover); text-decoration: underline; }

@media (max-width: 480px) {
	.qqt-auth-card { padding: 32px 24px 24px; border-radius: 12px; }
	.qqt-auth-title { font-size: 30px; }
}
