.login-modal {
    align-items: center;
    display: none;  /* Changes to flex programmatically. */
    flex-direction: column;
}

.login-modal:not(.modal-in-element) {
    background: rgba(0, 0, 0, 0.7);  /* #000 @ 70% */
    bottom: 0;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1;
}

.login-modal.modal-in-element {
    /* Used when the login modal is a child of a specific HTML element. */
}

.login-modal-content {
    background: #fff;
    border-radius: 0.625rem;  /* 10px */
    filter: drop-shadow(0 0 1.25rem rgba(0, 0, 0, 0.5));  /* 20px, #000 @ 50% */
    padding: 1.875rem;  /* 30px */
    position: relative;
}

.login-modal-content > span {
    color: #999;
    font-size: 1.875rem;  /* 30px */
    font-weight: bold;
    position: absolute;
    right: 0.9375rem;  /* 15px */
    top: 0.3125rem;  /* 5px */
}

.login-modal-content > span:hover {
    color: #666;
    cursor: pointer;
}

.login-modal-content > h1 {
    font-size: 1.5rem;  /* 24px */
    margin-bottom: 1.875rem;  /* 30px */
    text-align: center;
}

.login-modal-row {
    align-items: center;
    display: flex;
    margin-bottom: 1.25rem;  /* 20px */
}

.login-modal-row > label {
    display: block;
    font-weight: bold;
    margin-right: 1.25rem;  /* 20px */
    width: 5.9375rem;  /* 95px */
}

.login-modal-row > input {
    background: #eee;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    display: block;
    font: inherit;
    padding: 0.625rem;  /* 10px */
}

.login-modal-row > input.form-error {
    background: rgba(221, 17, 51, 0.15);  /* #d13 @ 15% */
}

.login-modal-row > input:focus {
    outline: 0;
}

.login-modal-row > input:not(.form-error):focus {
    background: #def;
}

.login-modal-content > p {
    color: #d13;
    margin-bottom: 1.25rem;  /* 20px */
    text-align: center;
}

.login-modal-content > button {
    background: #026;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    color: #eee;
    display: block;
    font: inherit;
    font-weight: bold;
    margin: auto;
    padding: 0.9375rem;  /* 15px */
}

.login-modal-content > button:focus {
    outline: 0;
}

.login-modal-content > button:hover {
    background: #137;
    color: #fff;
    cursor: pointer;
}

.login-modal-content > button:disabled {
    background: #999;
    cursor: wait;
}