/* **************************************************************************** */
/* ******************************* FORM FIELDS ******************************** */
/* **************************************************************************** */

.normal-field,
.password-field {
    display: flex;

    width: 100%;

    border: 1px solid #d5d5d5;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.70);

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.normal-field:focus-within,
.password-field:focus-within {
    border-color: #181818;

    box-shadow: 0 0 0 2px rgba(24, 24, 24, 0.08);
}


.normal-field .normal-input,
.password-field .password-input {
    flex: 1;
    min-width: 0;

    padding: 13px 14px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #181818;
}


/* **************************************************************************** */
/* ***************************** PASSWORD TOGGLE ****************************** */
/* **************************************************************************** */

.password-toggle {
    flex-shrink: 0;

    padding: 0 14px;

    border: 0;
    border-left: 1px solid #e5e5e5;

    background: transparent;
    color: #666666;

    font: inherit;
    font-size: 13px;

    cursor: pointer;
}


.password-toggle:hover {
    background: rgba(255, 255, 255, 0.40);

    color: #181818;
}


.password-toggle:focus-visible {
    outline: 2px solid #181818;
    outline-offset: -3px;
}


/* **************************************************************************** */
/* ********************************* BUTTONS ********************************** */
/* **************************************************************************** */

.button {
    display: block;

    width: 100%;

    padding: 14px 18px;

    border-radius: 9px;

    font: inherit;
    font-size: 15px;
    font-weight: 500;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.button-primary {
    border: 1px solid #181818;

    background: #181818;
    color: #ffffff;
}


.button-primary:hover {
    background: #333333;
}


.button-secondary {
    border: 1px solid #d5d5d5;

    background: #ffffff;
    color: #181818;
}


.button-secondary:hover {
    border-color: #181818;

    background: #f8f8f8;
}


/* **************************************************************************** */
/* ********************************** ERROR *********************************** */
/* **************************************************************************** */

.error {
    margin: 0 0 18px;
    padding: 10px 12px;

    border-radius: 8px;

    background: rgba(160, 0, 0, 0.08);
    color: #8f1d1d;

    font-size: 14px;
}