/*
Copyright 2020 Bruno Windels <bruno@windels.cloud>
Copyright 2020 The Matrix.org Foundation C.I.C.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

/** contains styles for everything before the session view, like the session picker, login, load view, ... */

.SessionPickerView {
    padding: 0.4em;
}

.SessionPickerView ul {
    list-style: none;
    padding: 0;
}

.SessionPickerView li {
    margin: 0.4em 0;
}

.SessionPickerView .session-info {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.SessionPickerView .session-info> :not(:first-child) {
    margin-left: 8px;
}

.SessionPickerView li .user-id {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.SessionPickerView li .error {
    margin: 0 20px;
}

.PasswordLoginView {
    padding: 0 0.4em 0.4em;
}

.SessionLoadStatusView > .status, .LoginView_query-spinner {
    display: flex;
    gap: 12px;
}

.SessionLoadStatusView > .status p, .LoginView_query-spinner p {
    flex: 1;
    margin: 0;
}

.SessionLoadStatusView .spinner {
    --size: 20px;
}

.StartSSOLoginView {
    display: flex;
    flex-direction: column;
    padding: 0 0.4em 0;
}

.StartSSOLoginView_button {
    flex: 1;
    margin-top: 12px;
}

.LoginView_separator {
    justify-content: center;
    display: flex;
    margin: 8px;
}

.CompleteSSOView_title {
    display: flex;
    justify-content: center;
}

.LoginView_sso {
    padding: 0.4em 0.4em 0;
}
