/* Root Variables */
:root {
  --primary-color: #000;
  --primary-hover: #fff;
  --primary-light: rgba(70, 199, 199, 0.1);
  --success-color: #10b981;
  --success-light: #ecfdf5;
  --error-color: #ef4444;
  --error-light: #fef2f2;
  --text-color: #1f2937;
  --text-muted: #64748b;
  --card-background: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: rgba(70, 199, 199, 0.25);
  --box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --box-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Body Styles */
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
}

/* Container Styles */
.container {
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  margin: 1rem;
  box-sizing: border-box;
}

/* Auth Card Styles */
.auth-card {
  background: var(--card-background);
  padding: 2.5rem;
  position: relative;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Brand Header Styles */
/* Brand Header Styles */
.brand-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 100%; /* Ensure the container doesn't overflow */
  overflow: hidden; /* Hide any overflow */
}

/* Logo Styles */
.brand-header .logo {
  display: none;
  max-width: 100%; /* Ensure the logo doesn't exceed the container's width */
  max-height: 60px; /* Limit the height to prevent overflow */
  width: auto; /* Maintain the aspect ratio */
  height: auto; /* Maintain the aspect ratio */
  margin: 0;
  display: inline-block;
}



/* Tagline Styles */
.tagline {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Form Styles */
form {
  display: grid;
  gap: 1.75rem;
}

.form-group {
  position: relative;
}

/* Label Styles */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--text-color);
}

/* Input Styles */
input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border-color);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #fff;
  color: var(--text-color);
}


input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Button Styles */
/* Base Button Styles */
button[type="submit"] {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem;
  background-color: black;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid black;
  outline: none;
}

/* Hover State */
button[type="submit"]:hover {
  background-color: white;
  color: black;
  border-color: black;
}

/* Focus State */
button[type="submit"]:focus {
  background-color: white;
  color: black;
  border-color: black;
  outline: none;
}

/* Active State */
button[type="submit"]:active {
  transform: translateY(1px); /* Slight downward movement on click */
}


.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  flex: 1;
  padding-right: 40px; /* Space for the toggle button */
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  outline: none;"
}

.toggle-password:hover {
  opacity: 0.8;
}


/* Loader Styles */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hidden {
  display: none;
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 0;
  }

  .auth-card {
    padding: 2rem;
  }

  form {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
    margin: 0;
  }

  .auth-card {
    padding: 1.5rem;
  }

  form {
    gap: 1.25rem;
  }

  input {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  button[type="submit"] {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
}



/* Footer Styles */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  background-color: var(--background-color);
  border-top: 1px solid var(--border-color);
}
