/* Optimal system notifications
   OR-404 shared notification component
*/

.system-notification-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background: rgba(28, 44, 69, 0.16);
    z-index: 2300;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 30vh 20px 20px;

    pointer-events: none;
    opacity: 1;
    transition: opacity .28s ease;
}

.system-notification-backdrop.fade-out {
    opacity: 0;
}

.system-notification-panel {
    width: 90%;
    max-width: 420px;

    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 4px 36px rgba(30, 42, 55, 0.19),
        0 1.5px 8px rgba(60, 120, 190, 0.10);

    padding: 26px 28px;
    text-align: center;
    color: #29354a;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.5;

    animation: optimal-notification-in .36s cubic-bezier(.77, -.01, .37, .95);
    pointer-events: auto;
}

@keyframes optimal-notification-in {
    from {
        transform: translateY(60px) scale(.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .system-notification-backdrop {
        padding-top: 26vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-notification-panel {
        animation: none;
    }

    .system-notification-backdrop {
        transition: none;
    }
}


/* OR-404: shared inline form feedback */
.form-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  background: #f8fafc;
  color: #29354a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.form-message-error {
  border-color: #e2b4b4;
  background: #fff4f4;
  color: #8f2525;
}

.form-message-success {
  border-color: #b9dfc0;
  background: #f0faf2;
  color: #256b30;
}

.form-message-warning {
  border-color: #e5cf9b;
  background: #fff9e8;
  color: #765b14;
}

.form-message-info {
  border-color: #bfd2e6;
  background: #f3f8fd;
  color: #294f74;
}