/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: linear-gradient(145deg, #1e2f2d, #2d3f3b);
  color: #fefefe;
  min-height: 100vh;
}

/* ==== GLOBAL COLORS ==== */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --accent: #fb923c;
  --yellow: #facc15;
  --blue: #3b82f6;
  --text-dark: #1e293b;
  --bg-light: #fef9f5;
  --white: #ffffff;
  --gray-border: #d1d5db;
  --error: #ef4444;
  --success: #10b981;
}

/* ==== SPLASH SCREEN ==== */
.splash-body {
  background: linear-gradient(145deg, #1e2f2d, #2d3f3b);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.splash-screen .logo {
  width: 160px;
  animation: fadeInZoom 2s ease-in-out;
}
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==== AUTH BODY ==== */
.auth-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
  background: linear-gradient(120deg, #1e2f2d, #2d3f3b);
}
.auth-container {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.6s ease-in-out;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== FORM CARD ==== */
.form-box {
  background: #fef9f5;
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.form-box h2 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--primary-dark);
}

/* ==== INPUT GROUP ==== */
.input-group {
  position: relative;
  margin: 16px 0;
}
.input-group input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border-radius: 10px;
  border: 1px solid var(--gray-border);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
  background: #fff7ed;
  color: #1e293b;
}
.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}
.input-group input::placeholder {
  color: #94a3b8;
}
.input-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--primary-dark);
  font-size: 16px;
}

/* ==== BUTTON ==== */
form button {
  width: 100%;
  background-color: var(--primary);
  color: #fff;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s ease;
}
form button:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 0 10px rgba(255, 137, 32, 0.5);
}

/* ==== LINKS ==== */
form p {
  font-size: 14px;
  margin-top: 14px;
  color: #475569;
}
form p a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

/* ==== ERROR / SUCCESS ==== */
#errorMessage,
#loginErrorMessage {
  font-size: 14px;
  color: var(--error);
  margin-top: 10px;
}

/* ==== LANGUAGE SELECTOR ==== */
.lang-switch {
  text-align: right;
  margin-bottom: 16px;
}
.lang-switch select {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid var(--gray-border);
  background-color: #fff7ed;
  color: var(--text-dark);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 480px) {
  .form-box {
    padding: 24px 18px;
  }
  .form-box h2 {
    font-size: 20px;
  }
  .input-group input {
    font-size: 14px;
    padding-left: 38px;
  }
  .lang-switch {
    text-align: center;
    margin-top: 10px;
  }
}
