body{
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	font-family: 'Jost', sans-serif;
	overflow-x: hidden;
    background: black;
}

canvas{
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        pointer-events: none;
        z-index: 0;
}

  
.signup{
	position: relative;
	width:100%;
	height: 100%;
	padding: 15px;
	background-color: rgba(27, 25, 25, 0.521);
	min-width: 300px;
	min-height: 300px;
	border-radius: 15px;
	box-shadow: 
	    0 0 5px #00ff00ff,
        0 0 15px #00ff00ff;
	border: 2px solid #00ff00ff;
}

h1{
	color: #fff;
	font-size: 2.3em;
	justify-content: center;
	display: flex;
	margin: 50px;
	margin-top: 20px;
	font-weight: bold;
	cursor: pointer;
	transition: .5s ease-in-out;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.signup input.form-control {
	box-sizing: border-box;
	width: 82%;
	min-height: 44px;
	display: block;
	margin: 12px auto;
	padding: 0 14px;
	color: #e9ffe9;
	background: rgba(4, 13, 8, 0.92);
	border: 1px solid rgba(0, 255, 0, 0.5);
	border-radius: 25px;
	box-shadow: inset 0 0 12px rgba(0, 255, 0, 0.08);
	font: 500 0.95rem/1.4 'Jost', sans-serif;
	color-scheme: dark;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup input.form-control::placeholder {
	color: rgba(233, 255, 233, 0.68);
	opacity: 1;
}

.signup input.form-control:focus {
	border-color: #00ff55;
	outline: 3px solid rgba(0, 255, 85, 0.22);
	outline-offset: 2px;
	box-shadow: 0 0 12px rgba(0, 255, 85, 0.35), inset 0 0 12px rgba(0, 255, 0, 0.08);
}

.signup input.form-control:-webkit-autofill,
.signup input.form-control:-webkit-autofill:hover,
.signup input.form-control:-webkit-autofill:focus {
	-webkit-text-fill-color: #e9ffe9;
	caret-color: #e9ffe9;
	-webkit-box-shadow: 0 0 0 1000px #040d08 inset, 0 0 12px rgba(0, 255, 85, 0.25);
	transition: background-color 9999s ease-out 0s;
}


button{
	width: 80%;
	height: 40px;
	margin: 10px auto;
	justify-content: center;
	display: block;
	color: #fff;
	background: rgba(0, 255, 0, 0.37);
	box-shadow: 
	    0 0 5px #00ff00ff,
        0 0 15px #00ff00ff;

	font-size: 1em;
	font-weight: bold;
	margin-top: 30px;
	outline: none;
	border: none;
	border-radius: 25px;
	transition: .2s ease-in;
	cursor: pointer;
}
button:hover{
	background: rgba(27, 25, 25, 0.521);
	box-shadow: 
	    0 0 5px #00ff00ff,
        0 0 15px #00ff00ff;
	
}

.error-card {
      position: absolute;
	  left: 51%;
      top: 10%; 
      transform: translateX(-50%);
      background-color: rgba(255, 0, 0, 0.15); 
      border: 2px solid #ff0000;
      border-radius: 10px;
      padding: 15px;
      color: #ffffff;
      text-align: center;
      z-index: 20; 
      font-family: 'Jost', sans-serif;
      box-shadow:
          0 0 5px #ff0000,
          0 0 15px #ff0000;
  }

.error-card.hidden {
    display: none;
}

  .error-card p {
      margin: 5px 0;
  }

  .close-btn {
      position: absolute;
      top: 5px;
      right: 12px;
      color: #fff;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      transition: color 0.2s ease;
      width: 36px;
      height: 36px;
      margin: 0;
      padding: 0;
      background: transparent;
      box-shadow: none;
  }

  .close-btn:hover {
      color: #ffcccc; 
  }

.close-btn:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

  .loading-overlay {
      position: fixed; 
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.75);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999; 
  }


  .loading-overlay.hidden {
      display: none;
  }

  .spinner {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 8px solid rgba(0, 255, 0, 0.2); 
      border-top-color: #0F0; 
      animation: spin 1s linear infinite;
  }

  
  @keyframes spin {
      to {
          transform: rotate(360deg);
      }
  }

@keyframes screen-flicker {
    0%, 100% { background-color: rgba(0, 0, 0, 0); }
    50% { background-color: rgba(255, 255, 255, 0.3); }
}

.flickering {
    animation: screen-flicker 0.5s linear 3;
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@media (max-width: 480px) {
	.login-container {
		width: min(100% - 32px, 380px);
	}
	.signup {
		box-sizing: border-box;
		min-width: 0;
		padding: 12px;
	}
	.signup h1 {
		font-size: 1.8em;
		margin: 22px 12px;
	}
	.signup input.form-control,
	button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

#welcome-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#welcome-overlay.is-visible {
    display: flex;
}

#welcome-message {
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    text-shadow: 0 0 10px #0f0;
    text-align: center;
}
