/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding-top: 80px; /* Space for the fixed header */
    padding-bottom: 60px; /* Space for bottom buttons */
    height: 100vh; /* Full viewport height */
}

a {
    text-decoration: none;
    color: #e74c3c; /* Default link color */
}

a:hover {
    text-decoration: underline;
}
.home-button {
  text-decoration: none;
  color: #fff;               /* or whatever your header text color is */
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

/* 3. slightly enlarge the icon */
.home-button i {
  margin-left: 0.5rem;
  font-size: 1.4rem;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header styling */
.main-header {
    background-color: #2c3e50;
    padding: 20px 0;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .back-button i {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.main-header .back-button i:hover {
    color: #e74c3c;
}

.main-header .page-title {
    font-size: 22px;
    font-weight: 500;
    color: #ecf0f1;
}

/* Sign-up section styling */
.signup {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 80px auto;
    max-width: 500px;
    bottom: 80px;
}

.signup-form h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

.signup-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #2c3e50;
}

.signup-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.signup-button {
    background-color: #e74c3c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
}

.signup-button:hover {
    background-color: #c0392b;
}

/* Login link section styling */
.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link p {
    color: #2c3e50;
}

.login-link a {
    font-weight: 500;
    color: #e74c3c;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    .signup {
        padding: 20px;
    }

    .signup-form h1 {
        font-size: 20px;
    }
}
#passwordError {
    color: red; /* Set text color to red */
    margin-top: 0.5rem; /* Adds space between the input and the error message */
    display: none; /* Initially hide the message */
}
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); /* semi-transparent white overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* high z-index so it appears on top */
  }
  
  /* Spinner Container */
  .spinner {
    --uib-size: 40px;
    --uib-color: #e74c3c; /* Spinner dot color */
    --uib-speed: 1.3s;
    --uib-dot-size: 25%;
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin var(--uib-speed) infinite linear;
  }
  
  /* Dot styles */
  .spinner .dot {
    position: absolute;
    left: calc(50% - var(--uib-dot-size) / 2);
    width: var(--uib-dot-size);
    height: 100%;
  }
  
  .spinner .dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--uib-color);
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  /* Staggered animations for the dots */
  .spinner .dot:nth-child(1) {
    transform: rotate(120deg);
  }
  .spinner .dot:nth-child(1)::after {
    animation: wobble var(--uib-speed) infinite ease-in-out;
  }
  
  .spinner .dot:nth-child(2) {
    transform: rotate(-120deg);
  }
  .spinner .dot:nth-child(2)::after {
    animation: wobble var(--uib-speed) infinite ease-in-out;
  }
  
  .spinner .dot:nth-child(3)::after {
    animation: wobble var(--uib-speed) infinite ease-in-out;
  }
  
  /* Keyframes for spinner and wobble */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes wobble {
    0%, 100% { transform: translateY(0%); }
    50% { transform: translateY(65%); }
  }