/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  background: linear-gradient(to right, #0F2027, #000000, #2C5364);
  color: #fff;
  font-family: "Segoe UI", sans-serif;

  margin: 0;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 64px 16px 40px; /* top space για lang + title, bottom για footer */
}

/* Title */
#register-title {
  margin: 18px 0 16px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0,0,0,.45);
}

/* Message */
.message {
  margin-bottom: 10px;
  font-weight: 700;
  color: #FFDADA;
  min-height: 20px;
}

/* ===== Form ===== */
form {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);

  padding: 28px;
  border-radius: 20px;

  width: min(360px, 92vw); /* καλύτερο σε μεγάλες/μικρές οθόνες */
  box-shadow: 0 0 10px rgba(0,0,0,0.4);

  display: flex;
  flex-direction: column;
  gap: 12px; /* αντί για margin 10px 0 */
}

/* Κοινό στυλ input + select (ίδιο ύψος πάντα) */
input, select {
  width: 100%;
  height: 44px;              /* FIX: ίδιο ύψος => το country code δεν θα είναι “κοντό” */
  padding: 10px 12px;

  border: none;
  border-radius: 10px;

  font-size: 16px;
  line-height: 1.2;

  outline: none;
}

input:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(237, 30, 121, 0.25);
}

/* FIX select (appearance) */
select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

/* Button */
button {
  background-color: #fff;
  color: #ED1E79;
  font-weight: 800;

  padding: 12px;
  border: none;
  border-radius: 30px;

  width: 100%;
  cursor: pointer;
}

button:hover {
  background-color: #ED1E79;
  color: #fff;
}

/* ===== Footer ===== */
#footer {
  padding: 2rem 1rem;
  margin-top: 3rem;

  background: linear-gradient(to right, #0F2027, #000000, #2C5364); /* FIX: ; */
  color: #fff;

  text-align: center;
  font-size: 0.9rem;

  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#footer p {
  margin: 0.5rem 0;
  line-height: 1.5;
  font-weight: 300;
}

.footer-text {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Language Dropdown ===== */
.lang-dropdown {
  position: fixed;
  top: 12px;
  left: 12px;     /* ζήτησες πάνω-αριστερά */
  right: auto;

  z-index: 1000;
  font-family: Arial, sans-serif;
}

.lang-btn {
  background-color: #222;
  color: #fff;

  padding: 10px 14px;   /* όχι 1px */
  border: none;
  border-radius: 8px;

  cursor: pointer;
  font-size: 14px;

  transition: background 0.3s;
}

.lang-btn:hover { background-color: #444; }

.lang-options {
  display: none;
  flex-direction: column;

  position: absolute;
  left: 0;        /* ανοίγει κάτω από αριστερά */
  right: auto;
  margin-top: 6px;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;

  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  animation: fadeIn 0.25s ease;

  min-width: 160px;
  overflow: hidden;
}

.lang-options a {
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s;
}

.lang-options a:hover { background-color: #f0f0f0; }

.lang-options.show { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #footer { font-size: 0.8rem; border-radius: 0; }
}

@media (min-width: 1024px) {
  form { width: 420px; } /* για “μεγάλες οθόνες” */
}