.staticrypt-html,
.staticrypt-body {
  height: 100%;
}

.staticrypt-body {
  background-color: var(--global-bg-color);
  color: var(--global-text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.staticrypt-spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 18rem;
  width: 100%;
}

.staticrypt-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--global-divider-color);
  border-top-color: var(--global-theme-color);
  border-radius: 50%;
  animation: staticrypt-spin 0.75s linear infinite;
}

@keyframes staticrypt-spin {
  to {
    transform: rotate(360deg);
  }
}

.staticrypt-content {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.staticrypt-card {
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--global-card-bg-color);
  border: 1px solid var(--global-divider-color);
  border-radius: 8px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.staticrypt-site-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--global-theme-color);
  margin-bottom: 1.25rem;
}

.staticrypt-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--global-text-color);
  margin-bottom: 0.4rem;
}

.staticrypt-instructions {
  text-align: center;
  font-size: 0.82rem;
  color: var(--global-text-color-light);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.staticrypt-password-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--global-divider-color);
  border-radius: 6px;
  background-color: var(--global-bg-color);
  margin-bottom: 0.85rem;
  transition: border-color 0.15s;
}

.staticrypt-password-container:focus-within {
  border-color: var(--global-theme-color);
}

.staticrypt-password-container.staticrypt-error-state {
  border-color: #c44a4a;
  animation: staticrypt-shake 0.35s ease-in-out;
}

.staticrypt-error {
  font-size: 0.8rem;
  color: #c44a4a;
  margin: -0.4rem 0 0.85rem;
  animation: staticrypt-fade-in 0.15s ease-out;
}

@keyframes staticrypt-shake {
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

@keyframes staticrypt-fade-in {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

#staticrypt-password {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--global-text-color);
  width: 100%;
}

.staticrypt-toggle-password-visibility {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  opacity: 0.45;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

label.staticrypt-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--global-text-color-light);
  margin-bottom: 1rem;
  cursor: pointer;
}

.staticrypt-remember input[type="checkbox"] {
  accent-color: var(--global-theme-color);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.staticrypt-decrypt-button {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  background-color: var(--global-theme-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.staticrypt-decrypt-button:hover {
  filter: brightness(110%);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}
