/* Share24 - Share plain text contents for 24 hours */
/* Copyright (C) 2025  Alessio Vanni */

/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU Affero General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */

/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the */
/* GNU Affero General Public License for more details. */

/* You should have received a copy of the GNU Affero General Public License */
/* along with this program.  If not, see <https://www.gnu.org/licenses/>. */

pow-form {
    display: block;
}

pow-form .pow-form-validating-message:not(.pow-form-hidden) {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

/* Spinner taken from a free web resource */
.pow-form-validating-spinner {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
}

.pow-form-validating-spinner:after {
    content: " ";
    display: block;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    border: 0.125em solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: pow-form-validating-spinner 1.2s linear infinite;
}

.pow-form-hidden {
    display: none;
    visibility: hidden;
}

@keyframes pow-form-validating-spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
