body {
	font-family: 'Segoe UI', Arial, sans-serif;
	background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 18%),
		radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 20%),
		#07070f;
	color: #e4e4e7;
	margin: 0;
	padding: 0;
}

/* position: absolute;
	top: 900px;
	left: -550px;
	text-transform: uppercase;
	font-size: 300px;
	font-weight: 900;
	line-height: 300px;
	opacity: 0.04;
	pointer-events: none;
	z-index: 2;
	transform: rotate(-90deg); */
/* position: absolute; */

/* position: relative;
    display: flex;
    width: 100%;
    max-width: 520px;
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 900;
    z-index: 2;
    pointer-events: none;
    gap: 10px;
    margin: 48px auto -87px; */
#logo {
	/* font-size: 1rem; */
	/* font-weight: 800; */
	text-transform: uppercase;
	padding: 0 30px 0 0;
	/* letter-spacing: 0.12em; */
}

#logo a {
	text-decoration: none;
	color: #ffffff;
	background: linear-gradient(90deg, #8b5cf6, #38bdf8);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: 30px;
	font-weight: 900;
	/* text-shadow: 0 0 10px rgba(56, 189, 248, 0.95), 0 0 28px rgba(79, 70, 229, 0.65), 0 0 48px rgba(56, 189, 248, 0.45); */
	text-shadow: 0 0 18px rgba(79, 70, 229, 0.9), 0 0 35px rgba(56, 189, 248, 0.22);
	white-space: nowrap;
}

.header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 50px 0 0;
}

.container {
	position: relative;
	max-width: 520px;
	margin: 60px auto;
	background: rgba(15, 16, 33, 0.98);
	border-radius: 20px;
	border: 1px solid rgba(79, 70, 229, 0.4);
	box-shadow: 0 0 30px rgba(79, 70, 229, 0.18), 0 16px 50px rgba(0, 0, 0, .45);
	padding: 30px;
}

.container::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	pointer-events: none;
}

.top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.top-bar h1 {
	font-size: 24px;
	margin: 0;
	color: #f8fbff;
	text-shadow: 0 0 18px rgba(79, 70, 229, 0.9), 0 0 35px rgba(56, 189, 248, 0.22);
}

.page-intro {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #cbd5e1;
	opacity: 0.92;
}

.button-group {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	width: 100%;
	max-width: 520px;
	/* margin: 48px auto 16px; */
}

.auth-block {
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #3b3f57;
	font-size: 18px;
}

.user-email {
	color: #cbd5e1;
	font-size: 14px;
}

.button-group button {
	background: linear-gradient(180deg, rgba(36, 39, 76, 0.95), rgba(24, 29, 68, 0.98));
	color: #e4e4e7;
	border: 1px solid rgba(79, 70, 229, 0.35);
	padding: 10px 16px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 14px;
	box-shadow: 0 0 16px rgba(79, 70, 229, 0.18);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.button-group button:hover {
	transform: translateY(-1px);
	border-color: rgba(56, 189, 248, 0.65);
	box-shadow: 0 0 26px rgba(56, 189, 248, 0.28);
}

.form-block {
	border: 1px solid rgba(79, 70, 229, 0.35);
	border-radius: 14px;
	padding: 18px 18px 18px;
	margin-bottom: 20px;
	background: rgba(16, 18, 36, 0.95);
	box-shadow: inset 0 0 12px rgba(79, 70, 229, 0.08);
}

.form-block legend {
	color: #f8fbff;
	font-weight: 700;
	padding: 0 8px;
	text-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}

.form-block label,
.form-block input,
.form-block select {
	display: block;
	width: 100%;
}

.form-block input,
.form-block select {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(79, 70, 229, 0.25);
	background: rgba(24, 26, 46, 0.92);
	color: #e4e4e7;
	box-sizing: border-box;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.form-block input:focus,
.form-block select:focus {
	outline: none;
	border-color: rgba(56, 189, 248, 0.8);
	box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.form-block input:disabled,
.form-block select:disabled {
	background: #0a0b12;
	color: #4b5563;
}

.form-block label.disabled {
	color: #4b5563;
}

input.invalid,
select.invalid {
	border-color: #f87171;
	background: rgba(248, 113, 113, 0.12);
	box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
	animation: invalidPulse 1.4s ease-in-out both;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

@keyframes invalidPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
	}

	50% {
		box-shadow: 0 0 0 12px rgba(248, 113, 113, 0.08);
	}

	100% {
		box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
	}
}

.form-block .checkbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-block .checkbox-row input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid #4b5563;
	border-radius: 6px;
	background: #1d1f2e;
	cursor: pointer;
	position: relative;
	flex: none;
	margin: 0;
	padding: 10px;
}

.form-block .checkbox-row input[type="checkbox"]:focus {
	outline: 2px solid rgba(79, 70, 229, 0.4);
	outline-offset: 3px;
}

.form-block .checkbox-row input[type="checkbox"]:checked {
	border-color: #4f46e5;
	background: #4f46e5;
}

.form-block .checkbox-row input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 7px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.form-block .checkbox-row label {
	margin: 0;
	cursor: pointer;
}

.nds-warning {
	margin-top: 12px;
	padding: 14px 16px;
	background: rgba(248, 113, 113, 0.12);
	border: 1.5px solid #f87171;
	border-radius: 8px;
	color: #fca5a5;
	font-size: 0.9rem;
	line-height: 1.6;
	box-shadow: 0 0 12px rgba(248, 113, 113, 0.15);
}

p {
	margin: 0 0 18px;
	line-height: 1.6;
	color: #cbd5e1;
}

label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #f8fafc;
}

.file-upload {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 30px;
}

input[type="file"] {
	display: none;
}

.file-upload-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 9px;
	background: linear-gradient(135deg, #3c3f67, #313356);
	color: #d8dce8;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid #2f3353;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	margin: 0;
}

.file-upload-label:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(0, 0, 0, .25);
	background: linear-gradient(135deg, #444a7a, #34385f);
}

.file-upload-name {
	flex: 1;
	font-size: 13px;
	color: #a8afc7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 10px 12px;
	border-radius: 9px;
	border: 1px solid rgba(56, 189, 248, 0.3);
	background: rgba(22, 24, 42, 0.92);
	box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.08);
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.file-upload.invalid {
	border-color: #f87171;
	box-shadow: inset 0 0 12px rgba(248, 113, 113, 0.15);
}

.file-upload.invalid .file-upload-name {
	border-color: #f87171;
	background: rgba(248, 113, 113, 0.12);
	color: #fca5a5;
	box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
}

.submit-button {
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.98), rgba(56, 189, 248, 0.95));
	color: white;
	border: none;
	padding: 12px 18px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
	box-shadow: 0 0 22px rgba(79, 70, 229, 0.25);
	transition: transform .18s ease, box-shadow .18s ease;
}

.submit-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

.note {
	font-size: 14px;
	color: #94a3b8;
	margin-top: 14px;
}

.support-block {
	position: relative;
	max-width: 520px;
	/* border: 1px solid rgba(79, 70, 229, 0.4); */
	/* box-shadow: 0 0 30px rgba(79, 70, 229, 0.18), 0 16px 50px rgba(0, 0, 0, .45); */
	/* padding: 30px; */

	margin: -20px auto 60px;
	/* padding: 24px; */
	padding: 20px 30px 28px;
	/* border: 2px solid; */
	border: 1px solid #f472b6;
	/* border-image: linear-gradient(135deg, #f472b6, #a78bfa) 1; */
	background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), rgba(167, 139, 250, 0.08));
	/* border-radius: 12px; */
	border-radius: 20px;
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.support-block h3 {
	color: #f472b6;
	font-size: 18px;
	margin: 0 0 12px 0;
	font-weight: 600;
}

.support-block p {
	color: #cbd5e1;
	font-size: 14px;
	margin: 0 0 16px 0;
	line-height: 1.5;
}

.support-link {
	display: inline-block;
	padding: 12px 24px;
	background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(167, 139, 250, 0.95));
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	transition: all .3s ease;
	box-shadow: 0 0 20px rgba(244, 114, 182, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.support-link:hover {
	background: linear-gradient(135deg, rgba(244, 114, 182, 1), rgba(167, 139, 250, 1));
	box-shadow: 0 0 30px rgba(244, 114, 182, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .9);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100;
}

.modal-overlay.active {
	display: flex;
}

.modal {
	width: 100%;
	max-width: 420px;
	background: rgba(22, 24, 42, 0.98);
	border: 1px solid rgba(56, 189, 248, 0.35);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 0 25px rgba(56, 189, 248, 0.18), 0 20px 60px rgba(0, 0, 0, .5);
	position: relative;
}

.modal h2 {
	margin: 0 0 18px;
	color: #f8fbff;
	text-shadow: 0 0 16px rgba(56, 189, 248, 0.75);
}

.modal label {
	margin-bottom: 6px;
	color: #d1d5db;
}

.modal input {
	width: 100%;
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(56, 189, 248, 0.3);
	background: rgba(29, 31, 50, 0.95);
	color: #e4e4e7;
	box-sizing: border-box;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.modal input:focus {
	outline: none;
	border-color: rgba(79, 70, 229, 0.8);
	box-shadow: 0 0 18px rgba(79, 70, 229, 0.2);
}

.modal button {
	width: 100%;
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.98), rgba(56, 189, 248, 0.95));
	color: white;
	border: none;
	padding: 12px 16px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 15px;
	box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
	transition: transform .18s ease, box-shadow .18s ease;
}

.modal button:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

.modal-close {
	position: fixed;
	display: block;
	width: auto !important;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	color: #9ca3af;
	font-size: 20px;
	cursor: pointer;
}
