
/* =========================================
   LOGIN.CSS
   Design responsive moderne
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --background: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.35),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(14, 165, 233, 0.25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a,
            #172554,
            #0f172a
        );
}

/* PAGE */

.mo-log-box {
    border: 1px solid #c4c4c4;
    padding: 30px 25px 10px 25px;
    background: #0564a3;
    margin: 30px auto;
    width: 360px;
  }

  h1.mo-log-box-logo a {
    text-decoration:none;
  }

  h1.mo-log-box-title {
    color: #1a1818;
    background: #f8f8f8;
    font-weight: 300;
    padding: 15px 25px;
    line-height: 30px;
    font-size: 25px;
    text-align:center;
    margin: -27px -26px 26px;
  }

  .log-box-button {
    border-radius: 5px;
    background: #012741;
    text-align: center;
    cursor: pointer;
    font-size: 19px;
    width: 100%;
    height: 51px;
    padding: 0;
    margin-top: 25px;
    color: #fff;
    border: 0;
    outline:0;
  }

  .mo-log-box-input {
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 25px;
    padding-left:10px;
    border-radius: 5px;
    width: 347px;
    height: 50px;
  }

  .mo-log-box-input:focus {
      outline: none;
      border-color:#5c7186;
  }

  p.mo-log-errorMessage {
      background-color: #e66262;
      border: #AA4502 1px solid;
      padding: 5px 10px;
      color: #FFFFFF;
      border-radius: 3px;
  }

  .mo-log-titre {
    position: absolute;
    left: 450px;
    top: 40px;
    color: white;
    font-weight: bolder;
  }

  .mo-log-lbutil {
    position: absolute;
    left: 450px;
    top: 80px;
    color: white;
  }
  .mo-log-username {
    position: absolute;
    left: 230px;
    top: 0px;
    width: 220px;
    height: 20px;
  }
  
  .mo-log-pwd {
    position: absolute;
    left: 230px;
    top: 0px;
    width: 220px;
    height: 20px;
  }

  .mo-log-topbutton {
    position: absolute;
    top: 210px;
    left: 450px;
  }

/* LOGIN PAGE */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 35px 20px;
}

/* CARD */

.login-card {
    width: 100%;
    max-width: 440px;

    background: rgba(255, 255, 255, 0.97);

    border-radius: 24px;

    padding: 42px 38px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);

    animation: fadeIn 0.5s ease;
}

/* LOGO */

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    max-width: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #2563eb,
        #0ea5e9
    );

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.35);
}

/* Image dans le cadre */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* HEADER */

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* FORM */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
    color: #334155;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 54px;

    padding: 0 48px;

    border: 1px solid var(--primary);
    border-radius: 12px;

    background: #f8fafc;

    font-family: inherit;
    font-size: 14px;
    color: var(--text);

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    background: white;
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

.input-icon {
    position: absolute;
    left: 17px;
    z-index: 1;

    font-size: 16px;
    color: #94a3b8;

    pointer-events: none;
}

/* PASSWORD */

.toggle-password {
    position: absolute;
    right: 12px;

    width: 34px;
    height: 34px;

    border: none;
    background: transparent;

    cursor: pointer;

    color: #64748b;
    font-size: 17px;

    border-radius: 8px;
}

.toggle-password:hover {
    background: #e2e8f0;
}

/* BUTTON */

.btn-login {
    width: 100%;
    height: 56px;

    margin-top: 8px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    position: relative;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: white;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.btn-login:hover {
    background: linear-gradient(
        135deg,
        #1d4ed8,
        #1e40af
    );

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.30);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-arrow {
    position: absolute;
    right: 20px;
    font-size: 20px;
}

/* ALERT */

.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;

    border-radius: 10px;

    padding: 13px 15px;
    margin-bottom: 22px;

    font-size: 13px;
    line-height: 1.5;
}

/* FOOTER */

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin-top: 28px;

    color: #94a3b8;
    font-size: 12px;
}

.footer-lock {
    font-size: 13px;
}

.copyright {
    margin-top: 25px;

    text-align: center;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
}

/* ANIMATION */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLETTE */

@media (max-width: 768px) {

    .login-page {
        padding: 25px 18px;
    }

    .login-card {
        max-width: 420px;
        padding: 35px 30px;
    }

}

/* TELEPHONE */

@media (max-width: 480px) {

    .login-page {
        padding: 20px 15px;
    }

    .login-card {
        padding: 32px 23px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-header p {
        font-size: 13px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .input-wrapper input {
        height: 52px;
        font-size: 14px;
    }

    .btn-login {
        height: 54px;
    }

}

/* PETITS TELEPHONES */

@media (max-width: 360px) {

    .login-card {
        padding: 28px 18px;
    }

    .login-header h1 {
        font-size: 24px;
    }

}
