/* demo.css - Bright WebApp Theme adapted for auth.php */
:root {
  --primary-color: #2ca9df;
  --primary-hover: #2498C8;
  --text-sub: #4A5568;
  --border-color: darkgrey;
  --shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.animate {
  padding: 2rem 3rem 2rem 3rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 500px;
  text-align: center;
  border: none;
  transition: background 0.3s, border-color 0.3s;
  
  /* Animation */
  -webkit-animation: animatezoom 0.6s;
  animation: animatezoom 0.6s;
}

/* Non-animated version for error states reloads */
.non-animate {
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 500px;
  text-align: center;
  border: none;
  transition: background 0.3s, border-color 0.3s;
}

@-webkit-keyframes animatezoom {
  from {-webkit-transform: scale(0)} 
  to {-webkit-transform: scale(1)}
}
  
@keyframes animatezoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

.animate img, .non-animate img {
  max-height: 240px;
  height: auto;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 1.5rem;
}

.heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.subheading {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

form {
  text-align: left;
}

.center {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.center > div {
    margin-bottom: 0.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  margin-bottom: 0px; /* Overridden by parent gap/margin */
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 140, 228, 0.1);
}

button {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 1.0rem;
  width: 100%;
}

button:hover {
  background-color: var(--primary-hover);
}

button:active {
  transform: scale(0.98);
}

.button-dev {
    background-color: orange !important;
}
.button-dev:hover {
    background-color: darkorange !important;
}

@media (max-width: 480px) {
  .animate, .non-animate {
    padding: 2rem;
    margin: 1rem;
    box-shadow: none;
    border: none;
    background: transparent;
  }
}
