/* variables */

:root {
	--text-color: rgb(50, 50, 50);
	--brand-color: #fcac04;
	--brand-color-dark: #fc8304;
	--success-color: rgb(106, 149, 41);
	--error-color: rgb(208, 2, 27);
	--warning-color: rgb(252, 122, 30);
	--light-gray: rgb(200, 200, 200);
}

/* font imports */

@font-face {
	font-family: "Nunito Sans";
	src: url("../Nunito_Sans/NunitoSans-Regular.ttf") format("truetype");
	font-weight: normal;
}

@font-face {
	font-family: "Nunito Sans";
	src: url("../Nunito_Sans/NunitoSans-Bold.ttf") format("truetype");
	font-weight: bold;
}

/* boilerplate */

* {
	box-sizing: border-box;
}

body {
	font-size: 14px;
	font-family: "Nunito Sans", sans-serif;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0 0 1rem 0;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

hr {
	background-color: var(--text-color);
}

label {
	font-size: 0.875rem;
	text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"] {
	display: block;
	width: 100%;
	color: rgb(0,0,0);
	background-color: rgba(0,0,0,0);
	border: 1px solid rgb(118, 118, 118);
	border-radius: 0.25rem;
	padding: 0.5rem;
}

input,
select {
	max-width: 24rem;
}

input:focus,
select:focus {
	outline: none;
	border: 1px solid var(--brand-color);
}

input[type="submit"],
button {
	width: 100%;
	border: none;
}

/* global styles */

.form-row,
.pb-1 {
	padding-bottom: 1rem;
}

.btn {
	/* redundant properties so that a, button,
	and input[type="submit"] all look the same */
	display: block;
	color: #fff;
	font-family: "Nunito Sans", sans-serif;
	font-size: 0.875rem;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	background-color: var(--brand-color);
	border-radius: 0.375rem;
	padding: 0.5rem 1rem;
	transition: all 0.25s ease;
}

.btn:hover {
	background-color: var(--brand-color-dark);
	cursor: pointer;
}

.text-link {
	color:var(--brand-color-dark);
}

.text-link:hover {
	color: var(--brand-color);
	text-decoration: underline;
}

.display-none {
	display: none !important;
}

.error,
.error-color {
	color: var(--error-color);
}

.success-color {
	color: var(--success-color);
}

.captcha {
	vertical-align: middle;
}

/* layout */

.page {
	height: 100vh;
	min-width: 24rem;
	padding: 0 1.5rem;
	background-color: #909090;
}

main {
	display: flex;
	justify-content: center;
	padding-top: 3rem;
}

.auth-dialog {
	width: 24rem;
	padding: 1rem 1.5rem;
	background-color: #F6F6F6;
	box-shadow: 0 5px 15px rgb(0 0 0 / 50%);
}

.auth-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.auth-logo > img {
	width: 12rem;
}

.top {
	min-height: 14rem;
}

.bottom {
	min-height: 6rem;
	font-size: 0.875rem;
}

.bottom a {
	font-weight: bold;
}

label[for="id_isInstaller"],
label[for="id_role_0"],
label[for="id_role_1"],
label[for="id_dailyReport"],
label[for="id_monthlyReport"] {
	text-transform: none;
}

/* status code pages */

.status-code li {
	padding-bottom: 1rem;
}

.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-input {
    width: 100%;
    padding-right: 30px; /* Make room for the icon */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.password-toggle i {
    color: #888;
}

.alert-warning {
	padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
	text-align: center;
}

.alert-success {
padding: 10px;
background-color: rgb(3 173 126);
color: #eee;
border: 1px solid rgb(3 173 126);
border-radius: 5px;
margin-bottom: 15px;
text-align: center;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #555;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 26rem;
  background-color: #555;
  color: #fff;
  text-align: left;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -100px; /* Center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.success {
    color: green;
    background-color: #e6ffe6;
    border: 1px solid green;
    padding: 10px;
    margin: 10px 0;
}

.error {
    color: red;
    background-color: #ffe6e6;
    border: 1px solid red;
    padding: 10px;
    margin: 10px 0;
	display: block;
}