$formBorderRadius: 0.35rem;
$formColor: #e6e6e6;
$formError: #770000;
$formInputBackgroundColor: #434a52;
$formInputHoverBackgroundColor: #3c4249;
$formLabelBackgroundColor: #363b41;
$formSubmitBackgroundColor: #0087a9;
$formSubmitDisabledBackgroundColor: #264b55;

$formSubmitColor: #eee;
$formSubmitDisabledColor: #bdbdbd;

$formSubmitHoverBackgroundColor: #006a85;
$iconFill: #606468;
$formGap: 0.375rem;

.section1 {
	background:
		linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
		var(--background-image-url) top center no-repeat;
	background-size: cover;
	height: 100%;
	text-align: center;
	position: relative;
	color: $formColor;
}

#header,
.footer {
	background-color: transparent;
	color: $formColor;
}

.roomError {
	font-size: 14px;
	color: $formError;
	text-shadow: 0.2px 0px #ffffff;
	text-align: left;
	font-weight: 600;
}

.roomError mat-icon {
	vertical-align: bottom;
	padding-right: 4px;
}

.footer {
	position: absolute;
	bottom: 0;
	font-size: 9px;
	height: auto;
}

.footer a {
	color: $formColor;
}

#meet-version,
#logout-content {
	right: 15px;
	position: absolute;
	font-size: 13px;
}

h4 {
	font-size: 25px;
	font-weight: 300;
	color: #ffffff;
	position: relative;
	padding-bottom: 5px;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	#header_img,
	.ovVersion,
	.footer {
		display: none;
	}
}

.openvidu-slogan-container {
	margin-top: 80px;
}

#form-img {
	max-width: 290px;
	margin-right: 10px;
	margin-top: 10px;
	padding: 15px;
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	.section1 {
		background-attachment: fixed;
	}
}

.grid {
	inline-size: 90%;
	margin-inline: auto;
	max-inline-size: 26rem;
}

.hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.icons {
	display: none;
}

.icon {
	block-size: 1em;
	display: inline-block;
	fill: $iconFill;
	inline-size: 1em;
	vertical-align: middle;
}

input {
	background-image: none;
	border: 0;
	color: inherit;
	font: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	transition: background-color 0.3s;
}

input[type='submit'] {
	cursor: pointer;
}

.form {
	display: grid;
	gap: $formGap;
}

.form input[type='password'],
.form input[type='text'],
.form button[type='submit'] {
	inline-size: 100%;
}

.form-field {
	display: flex;
}

.form-input {
	flex: 1;
}

.room-prefix {
	color: $formColor;
}

.room-prefix label.error {
	background-color: $formError;
}
.room-prefix label,
.room-prefix input[type='text'],
.room-prefix input[type='password'] {
	border-radius: $formBorderRadius;
	padding: 0.85rem;
}

#room-id-input {
	border-radius: 0;
}

.room-prefix button[type='submit'] {
	border-radius: $formBorderRadius;
	padding: 0.4rem;
	cursor: pointer;
}

.room-prefix button:disabled[type='submit'] {
	cursor: auto;
	color: $formSubmitDisabledColor !important;
	background-color: $formSubmitDisabledBackgroundColor !important;
}

.room-prefix label {
	background-color: $formLabelBackgroundColor;
	border-bottom-right-radius: 0;
	border-top-right-radius: 0;
	padding-inline: 1.25rem;
}

.room-prefix input[type='password'],
.room-prefix input[type='text'] {
	background-color: $formInputBackgroundColor;
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	font-size: 16px;
}

.room-prefix input[type='password']:focus,
.room-prefix input[type='password']:hover,
.room-prefix input[type='text']:focus,
.room-prefix input[type='text']:hover {
	background-color: $formInputHoverBackgroundColor;
}

.room-prefix button[type='submit'] {
	background-color: $formSubmitBackgroundColor;
	color: $formSubmitColor;
	font-weight: 500;
	text-transform: uppercase;
}

.room-prefix button[type='submit']:focus,
.room-prefix button[type='submit']:hover {
	background-color: $formSubmitHoverBackgroundColor;
}
#clear-room-id-btn {
	height: auto;
	background-color: $formInputBackgroundColor;
	border-radius: 0;
	color: $formColor;
	mat-icon {
		vertical-align: middle;
	}
}
#room-id-generator-btn {
	height: auto;
	background-color: $formInputBackgroundColor;
	border-radius: $formBorderRadius;
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	color: $formColor;
	mat-icon {
		vertical-align: middle;
	}
	&:hover {
		background-color: $formInputHoverBackgroundColor;
	}
}

p {
	margin-block: 1.5rem;
}

.text--center {
	text-align: center;
}
