@font-face {
  font-family: 'Milker Bold';
  src: url('fonts/MilkerBold.ttf') format('truetype');
  /* adjust path if needed */
}

body {
  background-color: #001f3f;
  /* Dark blue */
  color: rgb(255, 191, 0);
  font-family: sans-serif;
  background: url('../images/formBackground.png') center/cover no-repeat;
}

.form-container {
  background-color: #13294b;
  ;
  /* Slightly lighter dark blue */
  padding: 30px;
  border-radius: 15px;
  margin: 50px auto;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0);
}

.form-control {
  background-color: #e6e6e6;
  color: #000;
}

.form-control::placeholder {
  color: #666;
}

.is-invalid {
  border-color: red !important;
}

/* Inline error messages */
.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 4px;
}

.text-success {
    color: #28a745; /* Green text for success messages */
}
#passwordAlert {
    font-size: 0.9rem; /* Smaller font size for the alert text */
    margin-top: 5px;
}

/* Caps Lock Alert Styling */
.caps-lock-alert {
    display: none;  /* Initially hidden */
    color: #ff0000;  /* Red color for the alert */
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.caps-lock-alert.visible {
    display: block;  /* Show alert when Caps Lock is on */
}

/* Toggle Password Visibility */
#togglePassword {
  position: absolute;
  right: 14px;
  top: 50px;
  cursor: pointer;
  font-size: 1.2em;
  color: #888;
}

/* Toggle Confirm Password Visibility */
#toggleConfirmPassword {
  position: absolute;
  right: 14px;
  top: 50px;
  cursor: pointer;
  font-size: 1.2em;
  color: #888;
}

/* Toast styles */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0.95;
  z-index: 9999;
  animation: fadeInOut 4s forwards;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px); }
}



/* Email verify button styles for responsiveness */
.verify-btn {
  min-width: 90px;
  font-size: 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  border-left: none;
  background: #073768;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}

.verify-btn:hover {
  background: rgb(255, 191, 0);
  color: #13294b;
}

@media (max-width: 576px) {
  .verify-btn {
    min-width: 70px;
    font-size: 0.95rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.btn-primary {
  background-color: #073768;
  border: none;
}

.btn-primary:hover {
  background-color: rgb(255, 191, 0);
}

.register-btn {
  padding: 12px 0;
  margin: 0;
  width: 120px;
  color: #000000;
  background-color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, color 0.2s;
  text-align: center;
  outline: none;
  cursor: pointer;
}

/* login redirect */
.textlogin
{
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease-in-out; /* Smooth text color transition */
}

.textlogin:hover
{
    color: #16ff01;  /* Twitter blue color on hover */
    text-decoration: underline;  /* Add underline on hover */
}


/* background animstion starts */

/* Canvas for nodes */
    /* Background image base layer */
#bgLayer {
  position: fixed; /* stays full screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/formBackground.png") center/cover no-repeat;
  z-index: 0;
}

/* Node animation layer */
#nodesCanvas {
  position: fixed; /* full cover, fixed so it doesn't scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Black overlay mask layer */
#hoverMask {
  position: fixed; /* cover full screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 1); /* fully black */
  mask-image: none;
  -webkit-mask-image: none;
  z-index: 2; /* above nodes but below form */
  pointer-events: none;
}



    .star {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        opacity: 1;
        animation: fly 0.7s ease-out forwards;
        z-index: 2;
    }

    @keyframes fly {
        0% { transform: translate(0, 0) scale(1); opacity: 1; }
        100% { transform: translate(var(--x), var(--y)) scale(0.5); opacity: 0; }
    }

    .cloud {
        position: absolute;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        animation: puff 0.6s ease-out forwards;
        z-index: 2;
    }

    @keyframes puff {
        0% { transform: scale(0.5); opacity: 0.6; }
        100% { transform: scale(2.5); opacity: 0; }
    }

/* background animstion ends */