/*
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007 Mandriva, http://www.mandriva.com
 * (c) 2016-2023 Siveo, http://www.siveo.net
 * (c) 2024-2025 Medulla, http://www.medulla-tech.io
 *
 * $Id$
 *
 * This file is part of MMC, http://www.medulla-tech.io
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; If not, see <http://www.gnu.org/licenses/>.
 * file login/index.css
 */
/*---
$Id$

Sirius Technologies // Interface serveur fichiers
Auteur : Arteca Design inc.
Derniere revision : 16 Juin 2004

-> Styles pour login

    1.  Contenu
    2.  Header
    3.  Footer
    4.  Form
    5.  Msg. Erreur

Notes:

---*/

@import '../bootstrap-buttons.css';
@import '../bootstrap-forms.css';
@import '../bootstrap-alerts.css';

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
    background: #f5f6f7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

#loginBox {
    width: 100%;
    max-width: 360px;
    margin: 92px auto 32px;
    padding: 0 16px;
}

/* ---------------------------------------- */
/* 1. Style pour le contenu                 */
/* ---------------------------------------- */

#interface {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

#content {
    padding: 24px 24px 28px;
}

#login {
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------- */
/* 2. Style pour le header                  */
/* ---------------------------------------- */

#header {
    text-align: center;
    margin-bottom: 20px;
}

#header img {
    display: inline-block;
    width: 200px;
    height: auto;
}

/* ---------------------------------------- */
/* 4. Form                                  */
/* ---------------------------------------- */

.form-inline .control-group {
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-inline .control-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1f2937;
}

.form-inline .controls {
    width: 100%;
}

.form-inline .controls input:not([type="submit"]),
.form-inline .controls select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 9px;
    background: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: #111827;
}

#login select {
    min-width: 0;
    height: auto;
    line-height: 1.4;
    background-color: #ffffff;
    color: #111827 !important;
}

#login select option {
    color: #111827;
    background: #ffffff;
}

.form-inline .controls select option {
    color: #111827;
}

.form-inline .controls select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.59 0.999999L6 5.58L1.41 0.999999L0 2.41L6 8.41L12 2.41L10.59 0.999999Z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 42px;
}

.form-inline .controls input:not([type="submit"]):focus,
.form-inline .controls select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
    outline: none;
}

#login .controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    margin: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#login .controls .btn + .btn {
    margin-top: 8px;
}

#login .controls .btn.btn-primary {
    box-shadow: 0 16px 26px -24px rgba(17, 24, 39, 0.45);
}

#login .controls .btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px -28px rgba(37, 96, 125, 0.6);
}

#login .controls .btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 12px 20px -20px rgba(17, 24, 39, 0.55);
}

#login p {
    margin: 0;
    text-align: right;
}

#login p a {
    color: #2563eb;
    font-weight: 600;
}

#login p a:hover {
    color: #1d4ed8;
}

/* ---------------------------------------- */
/* Providers                                */
/* ---------------------------------------- */

#loginFormProvider {
    padding: 8px 0 0;
}

#loginFormProvider .provider-group {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#loginFormProvider .provider-group h3 {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
    text-align: center;
    text-transform: uppercase;
}

.provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.provider-btn img {
    height: 22px;
    width: auto;
}

.provider-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -20px rgba(15, 23, 42, 0.55);
}

/* ---------------------------------------- */
/* 5. Style pour message d'erreur           */
/* ---------------------------------------- */

#alert  {
    margin-bottom: 18px;
    padding: 14px 16px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 10px;
    box-shadow: 0 16px 30px -32px rgba(248, 113, 113, 0.75);
}

/* licence style */

#licence {
    margin: 32px auto;
    font-size: 12px;
    text-decoration: none;
    padding: 6px 10px;
    color: #ffffff;
    width: auto;
    display: inline-block;
    border: 1px solid #e11d48;
    border-radius: 6px;
    background: linear-gradient(135deg, #f87171, #e11d48);
}

#licence a {
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
}

/* Footer hidden by default */

#footer,
#footerLeft,
#footerRight {
    display: none;
}

@media (max-width: 480px) {
    #loginBox {
        margin-top: 72px;
    }

    #content {
        padding: 22px 18px 26px;
    }
}