/* 
contain
*/

.login-screen {
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url(assets/background/outside-pixel.png);
	background-size: 100% 100%;
}

.login-full {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(20px);
}


.login-container {
	display: flex;
	flex-direction: column;
	gap: .5em;
	/*display: grid;
  grid-auto-flow: row;*/

	color: white;
	font-family: "Segoe UI", Tahoma, sans-serif;
	font-size: 1em;
}

.login-bold {
	font-weight: bold;
}

.login-header-container {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	/* is taking more width because of the pdp, idk why */
}

.login-loading-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.login-buttons-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
}

/* 
header
*/

.login-pdp {
	flex: 0 0 auto;
	width: 40%;
	height: auto;
	aspect-ratio: 1;

	border-radius: 100%;
	border: 4px solid #00000000;
	outline: 2px solid white;
	background-clip: padding-box;
	margin: 0;
}

.login-name {
	font-size: 2em;
	margin: 0;
}

.login-subname {
	font-size: 1em;
	margin: 0;
}

/* 
loading
*/

.login-loading {
	width: 7%;
	opacity: 0;
	/*margin: 1%;*/
	/*background-color: red;*/
}
#root.login_start .login-loading {
	opacity: 1;
 	animation: spin-accelerate 4s linear;
}

@keyframes spin-accelerate {
  00% { transform: rotate(0turn); }
  05% { transform: rotate(.4turn); }
  10% { transform: rotate(1turn); }
  15% { transform: rotate(1.8turn); }
  20% { transform: rotate(3turn); }
  25% { transform: rotate(5turn); }
  30% { transform: rotate(8turn); }
  40% { transform: rotate(20turn); }
  35% { transform: rotate(12turn); }
  45% { transform: rotate(30turn); }
  50% { transform: rotate(40turn); }
  100% { transform: rotate(100turn); }
}


/* 
buttons
*/

.login-button {
	--outline-gap: 4px;
	--outline-width: 2px;

	max-width: max(20vw, 30vh);
	/* here the witdth is defined */

	color: inherit;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	
	padding: .25em 2em;
	border-radius: 4px;
	border: var(--outline-gap) solid #00000000;
	outline: var(--outline-width) solid white;
	background-clip: padding-box;
	margin: 0;
	
	transition: border-width 0.2s, margin 0.2s, background-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	background-color: #ffffff33;
}

.login-button:hover {
	background-color: #ffffff66;
	box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.login-button:active {
	background-color: #ffffffaa;
	box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.login-button:focus {
	border-width: 0;
	margin: var(--outline-gap);
	box-shadow: 0 0 0 2px rgba(255,255,255,0.5)
}

/*
.login-button {
	background-color: #0078D7;
	color: white;
	font-family: "Segoe UI", Tahoma, sans-serif;
	font-size: 16px;
	font-weight: 600;
	padding: 10px 24px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-button:hover {
	background-color: #005A9E;
	box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.login-button:active {
	background-color: #004578;
	box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.login-button:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(0,120,215,0.5)
}
*/


/*
window
*/

#deskwindow {
	pointer-events: none;
	opacity: 0;
	transition: opacity .7s ease-in-out;
}

#deskwindow.login_done {
	pointer-events: all;
	opacity: 1;
}