/* Fill the entire viewport */
html, body {
  height: 100%;
  margin: 0;
}

/* =========================
   Logo — centered, natural sizing
   ========================= */
.logo-container {
  text-align: center;
  margin-bottom: 1rem;
  /* NO fixed height or min-height here */
}

.logo-container img {
  display: inline-block;
  max-height: 80px;  /* whatever looks good—this caps its height */
  width: auto;       /* preserve aspect ratio */
  height: auto;
  object-fit: contain;
}

body {
  display: flex;
  justify-content: center;    /* horizontal centering */
  align-items: flex-start;    /* top-align the form */
  background: #eef2f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 2rem 0;            /* add some space at the top & bottom */
}

/* Form wrapper */
.form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
}

/* Heading */
.form-container h1 {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  text-align: center;
  color: #333;
}

/* Each label + input group */
.field-group {
  margin-bottom: 1.2rem;
}
.field-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #555;
}
.field-group input[type="text"],
.field-group input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fafafa;
}

/* File inputs: slightly taller for touch */
.field-group input[type="file"] {
  padding: 0.5rem;
}

/* Error message */
.error {
  margin-bottom: 1rem;
  color: #d9534f;
  font-size: 0.9rem;
  text-align: center;
}

/* Submit button */
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}
.btn:hover {
  background: #0056b3;
}

/* Ensure it scales on narrow screens */
@media (max-width: 320px) {
  .form-container {
    padding: 1rem;
  }
  .form-container h1 {
    font-size: 1.2rem;
  }
}


/* grey-out disabled button */
.btn:disabled {
  background: #ccc;
  color: #777;
  cursor: not-allowed;
}

/* green tick after success */
.success-tick {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #28a745; /* bootstrap–green */
}
.success-tick::before {
  content: '✔️';
  margin-right: 0.5rem;
}
