/* Encryption Form Animation */
@keyframes scan-line {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes field-encrypt {
  0% {
    background-color: transparent;
    transform: scale(1);
  }
  50% {
    background-color: rgba(91, 141, 239, 0.1);
    transform: scale(1.02);
  }
  100% {
    background-color: rgba(91, 141, 239, 0.05);
    transform: scale(1);
  }
}

@keyframes lock-appear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.encryption-scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  border-radius: 4px;
}

.encryption-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(91, 141, 239, 0.8) 50%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(91, 141, 239, 0.6);
  top: 0;
}

.encryption-scan-active .encryption-scan-line {
  animation: scan-line 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.encrypting-field {
  animation: field-encrypt 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color 0.3s ease;
}

.field-encrypted {
  background-color: rgba(91, 141, 239, 0.03);
  border-color: rgba(91, 141, 239, 0.2);
}

/* Decryption Animation (reverse of encryption) */
@keyframes field-decrypt {
  0% {
    background-color: rgba(91, 141, 239, 0.05);
    transform: scale(1);
  }
  50% {
    background-color: rgba(74, 222, 128, 0.1);
    transform: scale(1.02);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

@keyframes scan-line-reverse {
  0% {
    bottom: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

.decryption-scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  border-radius: 4px;
}

.decryption-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 222, 128, 0.8) 50%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  bottom: 0;
}

.decryption-scan-active .decryption-scan-line {
  animation: scan-line-reverse 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.decrypting-field {
  animation: field-decrypt 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition: background-color 0.3s ease;
}

.field-decrypted {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.1);
}
