/* Import custom fonts */
@font-face {
  font-family: 'Roboto';
  font-weight: 400, 700;
  src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
}

@font-face {
  font-family: 'Open Sans';
  src: url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
}

/* Style for the "Sign In" heading */
h1 {
  color: #ffd700;
  font-size: 24px; /* Adjust the font size as needed */
  text-shadow: 2px 2px 4px #000;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #333;
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

form {
  background-color: rgba(68, 68, 68, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

/* Existing label styles */
label {
  color: white;
  text-shadow: 2px 2px 4px #000;
  font-weight: bold;
  margin-right: 10px;
  display: block;
  text-align: left;
  margin-bottom: 5px;
}

/* Existing button styles */
button {
  font-family: 'Open Sans', sans-serif;
  background: #ffd700;
  color: #fff;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 2px 2px 4px #000;
}

button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.button-disabled {
  cursor: not-allowed;
  background: #ccc; /* Gray out the button */
  pointer-events: none; /* Disable hover effects and clicks */
}

a.customLink {
    color: white;
    text-decoration: none
}

a.customLink:hover {
    color: #ffd700;;
}

#googleButton {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  margin-right: 10px;
  font-family: 'Roboto', sans-serif !important;

  &:hover {
    /* transform: translateY(-2px); */
  }
  
}

/* Existing styles for the "Register" button */
.register-button {
  /* ... */
}

/* Existing styles for the "Register" button hover effect */
.register-button:hover {
  /* ... */
}

/* New input group styles */
.input-group {
  position: relative;
  margin-bottom: 20px; /* Adjust spacing as needed */
}

.fieldHelp 
{
    color: red;
    font-size: 0.9em;
    text-align: left;
    text-indent: 10px;
    line-height: 0.25;
}

.forgotPassword
{
  color: white; 
  text-align: right;
  font-size: 0.9em;
  line-height: 0.25;
}

.input {
  border: solid 1.5px #9e9e9e;
  border-radius: 1rem;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: #f5f5f5;
  transition: border 150ms cubic-bezier(0.4,0,0.2,1);
  width: 100%; /* Use full width of the form */
  margin-bottom: 1rem; /* Add some space below the input */
  width: inherit;
}

.user-label {
  position: absolute;
  left: 15px;
  top: 1rem;
  color: #e8e8e8;
  pointer-events: none;
  transition: transform 150ms cubic-bezier(0.4,0,0.2,1), color 150ms cubic-bezier(0.4,0,0.2,1);
}

.input:focus, .input:valid {
  outline: none;
  border: 1.5px solid #ffd700;
}

.input:focus ~ .user-label, .input:valid ~ .user-label {
  transform: translateY(-1.6rem) scale(0.8);
  background-color: rgba(68, 68, 68, 0.8);
  color: #ffd700;
}

/* Remove styles for previous input types to prevent conflicts */
input[type="text"], input[type="password"] {
  /* Comment out or remove these styles */
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%; /* Ensures that the html and body tags cover the full height of the page */
  width: 100%; /* Ensures that the html and body tags cover the full width of the page */
}

#animated-background {
  position: absolute; /* Changed from absolute to fixed to ensure full coverage */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.toast {
  position: absolute;
  top: 25px;
  right: 30px;
  border-radius: 8px; /* Change to match the form's border-radius */
  background-color: rgba(68, 68, 68, 0.8); /* Use the same background color as the form */
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  font-family: 'Roboto', sans-serif; /* Use the same font as the form */
  color: #f5f5f5; /* Use the same font color as the form */
}

.toast.active {
  transform: translateX(0%);
}

.toast-content {
  display: flex;
  align-items: flex-start; /* Left-align content */
}

.toast-content .warning {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 35px;
  /* background-color: #ffd700;  */
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
}

.toast-content .message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.message .text {
  font-size: 16px;
  font-weight: 400;
  color: #f5f5f5;
  text-align: left;
}

.message .text.text-1 {
  font-weight: 600;
  color: #ffd700; 
}

.toast .close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
}

.toast .close:hover {
  opacity: 1;
}

.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
}

.toast .progress:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: #ffd700;
}

.progress.active:before {
  animation: progress 5s linear forwards;
}

/* Register Page Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-family: "Arial", sans-serif;
}

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

.tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 100%;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  margin-top: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.tooltip .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ffd700;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
}

@keyframes progress {
  100% {
    right: 100%;
  }
}

.toast.active ~ button {
  pointer-events: none;
}
