@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&display=swap');

/* ── Custom Auth CSS ── */

.tes-auth-page-wrapper {
	display: flex;
	width: 100vw;
	min-height: 100vh;
	overflow-x: hidden;
	background: #000;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #fff;
}

.tes-auth-page-wrapper * {
	box-sizing: border-box;
}

.tes-auth-left-panel {
	width: 30vw;
	min-width: 440px;
	height: 100vh;
	background: #0d0d0d;
	padding: 100px 45px 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
	border-right: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.tes-auth-left-panel::-webkit-scrollbar {
	width: 4px;
}

.tes-auth-left-panel::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}

.tes-auth-right-panel {
	flex-grow: 1;
	height: 100vh;
	position: relative;
	overflow: hidden;
}

.tes-auth-bg-video,
.tes-auth-bg-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.tes-auth-right-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.85));
	z-index: 2;
}

.tes-auth-logo {
	font-family: 'Outfit', sans-serif;
	font-weight: 900;
	font-size: 56px;
	line-height: 0.9;
	color: #baff00;
	margin-bottom: 45px;
	display: flex;
	flex-direction: column;
	letter-spacing: -0.04em;
}

.tes-auth-card {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	backdrop-filter: none;
}

.tes-auth-header {
	margin-bottom: 25px;
}

.tes-auth-header h2 {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px 0;
	letter-spacing: -0.02em;
}

.tes-auth-header p {
	font-size: 13px;
	color: #666;
	margin: 0;
	line-height: 1.4;
}

@media (max-width: 900px) {
	.tes-auth-left-panel {
		width: 100vw;
		min-width: 100%;
		padding: 90px 25px 40px;
	}
	.tes-auth-right-panel {
		display: none;
	}
	.tes-auth-page-wrapper.register-active .tes-auth-logo {
		display: none !important;
	}
}

/* Form Groups */
.tes-auth-row {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
}

.tes-auth-group {
	margin-bottom: 18px;
	width: 100%;
}

.tes-auth-group.half {
	flex: 1;
	margin-bottom: 0;
}

.tes-auth-group label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	color: #666;
	margin-bottom: 6px;
	letter-spacing: 0.05em;
}

.tes-auth-group input[type="text"],
.tes-auth-group input[type="email"],
.tes-auth-group input[type="password"],
.tes-auth-group input[type="tel"],
.tes-auth-group input[type="url"],
.tes-auth-group select,
.tes-auth-group textarea {
	width: 100%;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 12px 16px;
	color: #fff;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	height: 44px;
}

.tes-auth-group textarea {
	height: auto;
	resize: vertical;
}

.tes-auth-group select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	padding-right: 40px;
}

.tes-auth-group input:focus,
.tes-auth-group select:focus,
.tes-auth-group textarea:focus {
	border-color: #baff00;
	box-shadow: 0 0 10px rgba(186, 255, 0, 0.15);
}

/* Custom Checkboxes */
.tes-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	color: #aaa;
	cursor: pointer;
	margin-bottom: 12px;
	user-select: none;
}

.tes-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	accent-color: #baff00;
	width: 15px;
	height: 15px;
}

.tes-auth-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 12px;
}

/* Buttons */
.tes-auth-btn {
	width: 100%;
	background: #baff00;
	color: #000;
	border: 0;
	border-radius: 10px;
	padding: 13px 20px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 15px rgba(186, 255, 0, 0.15);
}

.tes-auth-btn:hover {
	background: #d4ff2a;
	box-shadow: 0 0 20px rgba(186, 255, 0, 0.3);
}

.tes-auth-btn:disabled {
	background: #2a2a2a;
	color: #555;
	cursor: not-allowed;
	box-shadow: none;
}

.tes-auth-btn-ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ccc;
	border-radius: 10px;
	padding: 13px 20px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tes-auth-btn-ghost:hover {
	border-color: #fff;
	color: #fff;
}

.tes-auth-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.tes-auth-actions .tes-auth-btn {
	flex: 2;
}

.tes-auth-actions .tes-auth-btn-ghost {
	flex: 1;
}

.tes-auth-footer {
	text-align: center;
	margin-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding-top: 18px;
	font-size: 12px;
	color: #666;
}

.tes-auth-footer a {
	color: #baff00;
	text-decoration: none;
	font-weight: 600;
}

.tes-auth-footer a:hover {
	text-decoration: underline;
}

/* Step Indicator */
.tes-steps-indicator {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 35px;
	position: relative;
	padding: 0 10px;
}

.tes-step-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
	width: 80px;
}

.tes-step-node .step-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1e1e1e;
	border: 2px solid rgba(255, 255, 255, 0.12);
	color: #777;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	transition: .2s;
	margin-bottom: 6px;
}

.tes-step-node.active .step-num {
	background: #baff00;
	border-color: #baff00;
	color: #000;
	box-shadow: 0 0 12px rgba(186, 255, 0, 0.3);
}

.tes-step-node.completed .step-num {
	background: #baff00;
	border-color: #baff00;
	color: #000;
}

.tes-step-node .step-lbl {
	font-size: 10px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: .2s;
	text-align: center;
	white-space: nowrap;
}

.tes-step-node.active .step-lbl,
.tes-step-node.completed .step-lbl {
	color: #fff;
}

.tes-step-line {
	flex-grow: 1;
	height: 2px;
	background: rgba(255, 255, 255, 0.1);
	position: absolute;
	left: 50px;
	right: 50px;
	top: 13px;
	z-index: 1;
}

/* File Upload Style */
.tes-file-upload-box {
	position: relative;
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	background: #0d0d0d;
	transition: border-color 0.2s, background-color 0.2s;
}

.tes-file-upload-box:hover {
	border-color: #baff00;
	background: rgba(186, 255, 0, 0.02);
}

.tes-file-upload-box input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.upload-placeholder svg {
	color: #555;
	margin-bottom: 8px;
	transition: color 0.2s;
}

.tes-file-upload-box:hover .upload-placeholder svg {
	color: #baff00;
}

.upload-placeholder span {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #ccc;
	margin-bottom: 2px;
}

.upload-placeholder small {
	font-size: 10.5px;
	color: #555;
}

.upload-file-name {
	font-size: 12.5px;
	font-weight: 700;
	color: #baff00;
	word-break: break-all;
}

/* Avatar upload CSS */
.tes-avatar-upload-trigger {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.avatar-preview-wrap {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px dashed rgba(255, 255, 255, 0.15);
	background: #0d0d0d;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s;
}

.tes-avatar-upload-trigger:hover .avatar-preview-wrap {
	border-color: #baff00;
}

.avatar-preview-placeholder {
	font-size: 10px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	text-align: center;
}

#avatar-img-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Error message style */
.tes-auth-error-msg {
	background: rgba(255, 107, 107, 0.08);
	border: 1px solid rgba(255, 107, 107, 0.2);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 12.5px;
	color: #ff6b6b;
	margin-bottom: 20px;
	line-height: 1.4;
}

.tes-consent-boxes {
	margin-bottom: 20px;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.03);
	padding: 16px;
	border-radius: 12px;
}

.tes-consent-boxes a.tes-contract-link {
	color: #baff00;
	text-decoration: underline;
	font-weight: 600;
	transition: opacity 0.2s;
}

.tes-consent-boxes a.tes-contract-link:hover {
	opacity: 0.8;
}

/* Back to Home Link */
.tes-auth-back-home {
	position: absolute;
	top: 30px;
	left: 45px;
	display: inline-flex;
	align-items: center;
	color: #666;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: color 0.2s;
	z-index: 100;
	line-height: 1;
}

.tes-auth-back-home:hover {
	color: #baff00;
}

@media (max-width: 900px) {
	.tes-auth-back-home {
		top: 25px;
		left: 25px;
	}
}

/* Agreement Modals */
.tes-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tes-auth-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(6px);
}

.tes-auth-modal-content {
	position: relative;
	background: #141414;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	width: 100%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	padding: 35px 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
	z-index: 10;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.tes-auth-modal-content::-webkit-scrollbar {
	width: 4px;
}

.tes-auth-modal-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}

.tes-auth-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: 0;
	color: #888;
	font-size: 28px;
	font-weight: 300;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

.tes-auth-modal-close:hover {
	color: #fff;
}

.tes-auth-modal-title {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	letter-spacing: -0.01em;
}

.tes-auth-modal-body {
	font-size: 13.5px;
	color: #ccc;
	line-height: 1.6;
}

.tes-auth-modal-body p {
	margin-top: 0;
	margin-bottom: 15px;
}
