
/* Login card */

.card {
    background: radial-gradient(circle at top left, #1d2439, #020617);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
    width: 320px;
}

.card__title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    text-align: center;
}

.card__subtitle {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
}



.login-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;

}

/* Form */

.form__label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    width: -webkit-fill-available;
}

.form__label--inline {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.calc-form__label--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.form__input {
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    font-size: 0.8rem;
}

.form__input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.form__input--small {
    max-width: 120px;
}

/* убрать стрелки у number-инпутов (Chrome / Edge / Safari) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* убрать стрелки у number-инпутов (Firefox) */
input[type="number"] {
    -moz-appearance: textfield;
}

#min-spread,
#max-spread {
    text-align: center;
}


.form__error {
    margin: 0;
    color: #f87171;
    font-size: 0.85rem;
}

/* Buttons */

button:hover {
    opacity: 0.9;
}

a:hover {
    opacity: 0.9;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    /* transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease; */
}

.btn--primary {
    background: var(--main-gradient);
    color: #f9fafb;
    font-weight: 600;
}


.btn--ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}




.user-text {
    text-decoration: underline;
    font-style: italic;
}


/* Общие */
.page {
    height: 100vh;
    /* фикс по высоте */
    display: flex;
    flex-direction: column;
}

.page--centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}