/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg-primary: #000000;
	--bg-secondary: #0a0a0a;
	--bg-tertiary: #111111;
	--bg-elevated: #1a1a1a;
	--text-primary: #ffffff;
	--text-secondary: #a0a0a0;
	--text-tertiary: #6b6b6b;
	--accent-primary: #6366f1;
	--accent-secondary: #8b5cf6;
	--accent-tertiary: #ec4899;
	--border-color: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(99, 102, 241, 0.3);
	--gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
	--gradient-2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
	--shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
	--shadow-glow-lg: 0 0 40px rgba(99, 102, 241, 0.4);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Auth Background */
.auth-background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	overflow: hidden;
}

.auth-background::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
	z-index: 1;
}

.auth-background::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
	z-index: 2;
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	padding: 16px 0;
	transition: all 0.3s ease;
}

.navbar .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-brand {
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-brand .brand-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1;
}

.brand-logo {
	height: 32px;
	width: auto;
	display: block;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

.brand-text {
	font-family: "Orbitron", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.nav-brand .brand-link:hover .brand-logo {
	filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
	transform: scale(1.05);
}

.nav-brand .brand-link:hover .brand-text {
	color: var(--accent-primary);
}

/* Auth Container */
.auth-container {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 120px 24px 60px;
}

.auth-card {
	width: 100%;
	max-width: 440px;
	background: var(--bg-elevated);
	border: 1px solid var(--border-color);
	border-radius: 24px;
	padding: 48px 40px;
	box-shadow: var(--shadow-lg), var(--shadow-glow);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.auth-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--gradient-1);
	opacity: 0.5;
}

.auth-card:hover {
	border-color: var(--border-hover);
	box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
	transform: translateY(-2px);
}

/* Auth Header */
.auth-header {
	text-align: center;
	margin-bottom: 40px;
}

.auth-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 24px;
}

.auth-logo img {
	height: 40px;
	width: auto;
	filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
}

.auth-logo-text {
	font-family: "Orbitron", sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.auth-title {
	font-size: 32px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 12px;
	line-height: 1.2;
}

.auth-subtitle {
	font-size: 16px;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* Form Styles */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 4px;
}

.form-label .required {
	color: var(--accent-tertiary);
}

.form-input {
	width: 100%;
	padding: 14px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 16px;
	font-family: inherit;
	transition: all 0.2s ease;
	outline: none;
}

.form-input::placeholder {
	color: var(--text-tertiary);
}

.form-input:focus {
	border-color: var(--accent-primary);
	background: var(--bg-secondary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:hover:not(:focus) {
	border-color: var(--border-hover);
}

.form-error {
	font-size: 14px;
	color: var(--accent-tertiary);
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.form-error::before {
	content: "⚠";
	font-size: 12px;
}

/* Password Toggle */
.password-toggle {
	position: relative;
}

.password-toggle-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	border-radius: 6px;
}

.password-toggle-btn:hover {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.05);
}

.password-toggle-btn svg {
	width: 18px;
	height: 18px;
}

/* Form Footer */
.form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	margin-top: -8px;
}

.form-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.form-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: var(--accent-primary);
}

.form-remember label {
	cursor: pointer;
	color: var(--text-secondary);
	user-select: none;
}

.form-link {
	color: var(--accent-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.form-link:hover {
	color: var(--accent-secondary);
	text-decoration: underline;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	outline: none;
	position: relative;
	overflow: hidden;
}

.btn-primary {
	background: var(--accent-primary);
	color: var(--text-primary);
	box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
	background: #7c80f7;
	box-shadow: var(--shadow-glow-lg);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-full {
	width: 100%;
}

.btn-secondary {
	background: var(--bg-elevated);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	background: #2a2a2a;
	border-color: var(--border-hover);
}

/* Divider */
.auth-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 32px 0;
	color: var(--text-tertiary);
	font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border-color);
}

/* Social Login */
.social-login {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 24px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.social-btn:hover {
	background: var(--bg-elevated);
	border-color: var(--border-hover);
	transform: translateY(-1px);
}

.social-btn svg {
	width: 20px;
	height: 20px;
}

.social-btn-phantom {
	background: #AB9FF2;
	border-color: #AB9FF2;
	color: #ffffff;
}

.social-btn-phantom:hover {
	background: #9a8de0;
	border-color: #9a8de0;
	transform: translateY(-1px);
}

.phantom-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.phantom-note {
	font-size: 13px;
	color: var(--text-tertiary);
	text-align: center;
	margin-top: -4px;
	line-height: 1.4;
}

/* Auth Footer */
.auth-footer {
	text-align: center;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 14px;
}

.auth-footer a {
	color: var(--accent-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

.auth-footer a:hover {
	color: var(--accent-secondary);
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.auth-container {
		padding: 100px 16px 40px;
	}

	.auth-card {
		padding: 40px 32px;
		border-radius: 20px;
	}

	.auth-title {
		font-size: 28px;
	}

	.form-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.auth-card {
		padding: 32px 24px;
	}

	.auth-title {
		font-size: 24px;
	}

	.auth-subtitle {
		font-size: 14px;
	}
}

