/* Общие настройки и градиентный фон Nextcloud */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(40deg, #0082c9 0%, #30b3ff 100%);
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

/* Главная обертка */
.login-wrapper {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

/* Белое облако-контейнер для формы */
.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 35px 30px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

/* Центрирование логотипа-льва */
.login-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.lion-logo svg {
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Поля ввода */
.input-group {
    margin-bottom: 12px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #0082c9;
}

.input-group input:disabled {
    background-color: #f5f5f5;
    color: #999999;
}

/* Особое поле для пароля, вмещающее кнопку «Войти» */
.password-group input {
    padding-right: 50px;
}

/* Фирменная круглая кнопка-стрелка внутри инпута */
.btn-submit {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    width: 36px;
    height: 36px;
    background-color: #0082c9;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
    background-color: #00669e;
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.arrow-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* Крутящийся спиннер */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Уведомление об ошибке вверху экрана */
.toast-error {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e53935;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-error.show {
    top: 0;
}

/* Футер */
.credits {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 15px;
}
