* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-image: url('jenna-kim-the-globe-dark.webp');
    background-color: #111;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    /* Делаем плашку полупрозрачной стеклянной, как в Nextcloud */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px); /* Красивое размытие фона за формой */
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-header {
    margin-bottom: 25px;
}

.login-logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 120px;
    height: auto;
}

.login-header h1 {
    /* Меняем цвет текста на белый, чтобы читался на темном фоне */
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.input-group {
    margin-bottom: 18px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
    outline: none;
}

.input-group input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    /* Фирменный синий цвет кнопки Nextcloud */
    background-color: #0082c9; 
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #006fab;
}

.error-message {
    background-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

.login-footer {
    margin-top: 25px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}
