/* Дополнение к water.css для страницы оплаты.
 *
 * Отдельный файл, а не правка water.css: так проще обновлять основную тему,
 * а свои правила остаются под контролем.
 */

/* Фон держим локальным файлом: раньше картинка шла с внешнего хранилища,
   и при его недоступности страница оставалась без оформления. */
.bg-pic {
    margin-top: 0;
    margin-bottom: 0;
    min-height: 100vh;
    background-position: center;
    background-repeat: repeat-y;
    background-size: cover;
    background-image: linear-gradient(rgba(32, 43, 56, 0.92), rgba(32, 43, 56, 0.98)),
        url('/static/pay/pay_bg.jpg');
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.just-center { justify-content: center; }
.just-right  { justify-content: right; }

.bg-bad { background-color: maroon !important; }
.bg-ok  { background-color: darkolivegreen !important; }

label, input { margin: 8px; }
label {
    width: 100px;
    text-align: end;
}

a {
    text-decoration: underline;
    text-decoration-style: dotted;
}

.err {
    color: #ffb4b4;
    text-align: center;
    margin: 12px;
}

/* Подсказка под полем: не блокирует отправку, только предупреждает. */
.field-hint {
    width: 100%;
    text-align: center;
    font-size: 70%;
    color: #ffb4b4;
    margin-top: -4px;
}

/* На узких экранах подписи не должны съедать место у полей. */
@media (max-width: 480px) {
    label {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    input {
        width: 100%;
        max-width: 320px;
    }
    h2 {
        font-size: 1.15em;
        text-align: center;
    }
}
