/* ===========================
   CSS Variables
   =========================== */
:root {
	--color-bg-overlay: rgba(0, 0, 0, 0.45);
	--color-card-bg: #ffffff;
	--color-text-primary: #111111;
	--color-text-secondary: #777777;
	--color-text-muted: #aaaaaa;
	--color-border: #e0e0e0;
	--color-border-focus: #888888;
	--color-accent: #c0392b;
	--color-btn-disabled-bg: #eeeeee;
	--color-btn-disabled-text: #aaaaaa;
	--color-btn-active-bg: #111111;
	--color-btn-active-text: #ffffff;
	--color-google-border: #e0e0e0;
	--color-google-hover: #f5f5f5;

	--font-display: 'PT Sans', sans-serif;
	--font-body: 'PT Sans', sans-serif;

	--radius-input: 0px;
	--radius-card: 4px;
	--shadow-card: 0 8px 48px rgba(0, 0, 0, 0.18);

	--transition-base: 160ms ease;
}

/* ===========================
   Page layout
   =========================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
}

body {
	font-family: var(--font-body);
	background-color: #1a1a1a;
	color: var(--color-text-primary);
	-webkit-font-smoothing: antialiased;
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	align-items: center;
	justify-content: center;
}
header {
	display: none;
}
.modal-video {
	display: none;
}

/* ===========================
   Background
   =========================== */
.signup-bg {
	position: fixed;
	inset: 0;
	background-image: url('../img/signup/bg.jpg');
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.signup-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

/* ===========================
   Page center
   =========================== */
.page-center {
	font-family: var(--font-body);
	inset: 0;
	position: absolute;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100vh;
	height: 100dvh;
}

/* ===========================
   Card
   =========================== */
.card {
	background: var(--color-card-bg);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 48px 56px 44px;
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;

	animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ===========================
   Logo
   =========================== */
.logo {
	margin-bottom: 28px;
	height: 19.5px;
	width: 100%;
	background-image: url('../img/signup/logo.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* ===========================
   Heading
   =========================== */
.card-title {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: bold;
	color: var(--color-text-primary);
	text-align: center;
	line-height: 1.2;
	margin-bottom: 6px;
}

.card-subtitle {
	font-size: 12.5px;
	color: var(--color-text-secondary);
	text-align: center;
	margin-bottom: 32px;
}

/* ===========================
   Google button
   =========================== */
.sso {
	margin-bottom: 25px;
	width: 100%;
}
.g_id_signin > div {
	display: flex !important;
	justify-content: center !important;
}
.g_id_signin > div > div > div > div {
	display: inline-flex !important;
	width: auto !important;
}

/* ===========================
   Divider
   =========================== */
.divider {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

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

.divider span {
	font-size: 12px;
	color: var(--color-text-muted);
	letter-spacing: 0.04em;
}

/* ===========================
   Form
   =========================== */
form#signup-form {
	width: 100%;
}
.form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.row-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.field {
	position: relative;
}

.field input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-input);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--color-text-primary);
	background: #ffffff;
	outline: none;
	transition:
		border-color var(--transition-base),
		box-shadow var(--transition-base);
}

.field input::placeholder {
	color: var(--color-text-muted);
}

.field input:focus {
	border-color: var(--color-border-focus);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.field-password input {
	padding-right: 44px;
}

.show_hide_password {
	position: absolute;
	right: 12px;
	top: 10px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text-muted);
	display: flex;
	align-items: center;
	padding: 4px;
	transition: color var(--transition-base);
}

.show_hide_password:hover {
	color: var(--color-text-secondary);
}

#hide_password {
	display: none;
}

/* ===========================
   Submit button
   =========================== */
.btn-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border: none;
	border-radius: var(--radius-input);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	background: #e0233c;
	color: #fff;
	transition:
		background var(--transition-base),
		color var(--transition-base),
		transform 80ms ease;
	margin-top: 2px;
}

.btn-submit svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.btn-submit:not([disabled]):hover {
	opacity: 0.85;
}

.btn-submit:not([disabled]):active {
	transform: scale(0.985);
}

label.error {
	font-size: 75%;
	font-weight: 600;
	color: var(--color-accent);
	margin-top: 4px;
}

/* ===========================
   Legal & Login
   =========================== */
.legal {
	font-size: 12px;
	color: var(--color-text-muted);
	text-align: center;
	line-height: 1.5;
	margin-bottom: 12px;
}

.legal a {
	color: var(--color-text-secondary);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--transition-base);
}

.legal a:hover {
	color: var(--color-text-primary);
}

.login-link {
	font-size: 13px;
	color: var(--color-text-secondary);
	text-align: center;
}

.login-link a {
	color: var(--color-accent);
	font-weight: 600;
	text-decoration: none;
	transition: opacity var(--transition-base);
}

.login-link a:hover {
	opacity: 0.75;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 480px) {
	.card {
		padding: 36px 28px 32px;
	}

	.row-two {
		grid-template-columns: 1fr;
	}

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