/* styles.css */
:root {
  --nt_yellow: rgb(251, 218, 49);
  --nt_blue: rgb(9, 82, 151);
  --disabled_hint: rgba(9, 82, 151, .4);
  --body_bg: linear-gradient(135deg, #ccc, var(--nt_blue));
  --card_bg: rgba(255, 255, 255, 0.75);
}



body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--body_bg);
}

.card {
  background: var(--card_bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2em;
  border-radius: 1.5em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


#logo {
  width: 80px;
  height: auto;
  margin-bottom: 1em;
  opacity: 0.9;
}

h2 {
  margin-top: 0;
  font-size: 1.5em;
  color: var(--nt_blue);
}

input,
button {
  width: 100%;
  padding: 0.75em;
  margin-top: 1em;
  border-radius: 0.5em;
  border: 1px solid #bbb;
  font-size: 1em;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.6);
}

input:focus {
  outline: none;
  border-color: var(--nt_blue);
}

button {
  background: linear-gradient(90deg, #007BFF, #0056b3);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: linear-gradient(90deg, #0056b3, #003d80);
}

.error {
  color: #b21f2d;
  margin-top: 0.5em;
  animation: shake 0.3s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

#show-hint {
  color: var(--nt_blue);
  background: #faf3dd;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.6;
}

#show-hint:enabled {
  cursor: pointer;
  opacity: 1;
  background: var(--nt_yellow);
}

#show-hint.loading {
  cursor: wait;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

#show-hint.loading::before {
  content: '⌛';
  display: inline-block;
  animation: flip 5s infinite;
}
@keyframes flip {
  0%   { transform: rotate(0deg); }
  45%  { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  95%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}


