@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


/* =========================================
   VARIABLES
========================================= */

:root {

    --accent: #d8a23a;
    --accent-light: #f0c86a;

    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);

    --background: #080808;

    --card: rgba(10, 10, 10, 0.82);

    --navbar: rgba(5, 5, 5, 0.94);

    --border: rgba(255, 255, 255, 0.11);

    --danger: #ff5c5c;
    --success: #6fd68a;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: 'Inter', sans-serif;

    color: var(--text);

    background-color: var(--background);

    background-image:

        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92),
            rgba(0, 0, 0, 0.68),
            rgba(0, 0, 0, 0.92)
        ),

        url("https://galerie.t-life.fr/media/gallery/texts.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font-family: inherit;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 82px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--navbar);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    z-index: 1000;
}


/* =========================================
   LOGO
========================================= */

.logo {

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 3px;

    white-space: nowrap;
}


.logo span {
    color: var(--accent);
}


/* =========================================
   NAVIGATION
========================================= */

.nav-links {

    display: flex;

    align-items: center;

    gap: 8px;
}


.nav-link {

    position: relative;

    padding: 12px 18px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 15px;

    font-weight: 600;

    border-radius: 7px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


.nav-link:hover {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.07);

    transform: translateY(-1px);
}


.nav-link.active {
    color: #ffffff;
}


.nav-link.active::after {

    content: "";

    position: absolute;

    left: 18px;
    right: 18px;

    bottom: 5px;

    height: 2px;

    background: var(--accent);

    border-radius: 10px;
}


/* =========================================
   DISCORD
========================================= */

.nav-link.discord {

    margin-left: 8px;

    color: #ffffff;

    background: rgba(216, 162, 58, 0.15);

    border: 1px solid rgba(216, 162, 58, 0.35);
}


.nav-link.discord:hover {

    color: #111111;

    background: var(--accent);
}


/* =========================================
   PAGE
========================================= */

.login-page {

    flex: 1;

    width: 100%;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 145px 20px 70px;
}


/* =========================================
   CONTAINER
========================================= */

.login-container {

    width: 100%;

    max-width: 500px;

    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.login-header {

    text-align: center;

    margin-bottom: 30px;
}


.badge {

    display: inline-block;

    margin-bottom: 18px;

    padding: 9px 18px;

    color: var(--accent-light);

    background: rgba(216, 162, 58, 0.10);

    border: 1px solid rgba(216, 162, 58, 0.35);

    border-radius: 50px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.login-header h1 {

    margin-bottom: 12px;

    font-size: clamp(38px, 6vw, 58px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;
}


.login-header h1::after {

    content: "";

    display: block;

    width: 55px;

    height: 3px;

    margin: 18px auto 0;

    background: var(--accent);

    border-radius: 10px;
}


.login-header p {

    margin-top: 18px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================
   CARD
========================================= */

.login-card {

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35);
}


/* =========================================
   FORM
========================================= */

.form-group {

    margin-bottom: 22px;
}


.form-group label {

    display: block;

    margin-bottom: 9px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================
   PASSWORD LABEL
========================================= */

.password-label {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.password-label label {
    margin-bottom: 9px;
}


.forgot-link {

    margin-bottom: 9px;

    color: var(--accent-light);

    font-size: 12px;

    font-weight: 600;

    transition: color 0.2s ease;
}


.forgot-link:hover {
    color: #ffffff;
}


/* =========================================
   INPUT
========================================= */

.form-group input {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    color: #ffffff;

    background: rgba(0, 0, 0, 0.42);

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: 8px;

    outline: none;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.form-group input::placeholder {

    color: rgba(255, 255, 255, 0.35);
}


.form-group input:hover {

    background: rgba(0, 0, 0, 0.52);

    border-color: rgba(255, 255, 255, 0.20);
}


.form-group input:focus {

    background: rgba(0, 0, 0, 0.58);

    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(216, 162, 58, 0.10);
}


/* =========================================
   MESSAGE
========================================= */

.message {

    min-height: 0;

    margin-bottom: 15px;

    padding: 0;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.6;

    transition: all 0.25s ease;
}


.message:not(:empty) {

    padding: 12px 14px;
}


.message.error {

    color: #ffb0b0;

    background: rgba(255, 70, 70, 0.10);

    border: 1px solid rgba(255, 70, 70, 0.25);
}


.message.success {

    color: #a7efb9;

    background: rgba(70, 210, 110, 0.10);

    border: 1px solid rgba(70, 210, 110, 0.25);
}


/* =========================================
   BUTTON
========================================= */

#loginButton {

    width: 100%;

    height: 52px;

    border: none;

    border-radius: 8px;

    color: #111111;

    background: var(--accent);

    cursor: pointer;

    font-size: 14px;

    font-weight: 800;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


#loginButton:hover {

    background: var(--accent-light);

    transform: translateY(-2px);
}


#loginButton:active {
    transform: translateY(0);
}


#loginButton:disabled {

    opacity: 0.55;

    cursor: not-allowed;

    transform: none;
}


/* =========================================
   REGISTER
========================================= */

.register-link {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    margin-top: 25px;

    padding-top: 23px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.50);

    font-size: 13px;

    text-align: center;
}


.register-link a {

    color: var(--accent-light);

    font-weight: 700;

    transition: color 0.2s ease;
}


.register-link a:hover {
    color: #ffffff;
}


/* =========================================
   FOOTER
========================================= */

footer {

    width: 100%;

    padding: 24px 6%;

    background: rgba(0, 0, 0, 0.45);

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}


.footer-content {

    display: flex;

    justify-content: space-between;

    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;
}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 1000px) {

    .navbar {

        height: auto;

        min-height: 75px;

        padding: 15px 5%;

        flex-direction: column;

        gap: 12px;
    }


    .nav-links {

        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }


    .nav-link {

        padding: 9px 12px;

        font-size: 13px;
    }


    .login-page {

        padding-top: 180px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .login-page {

        padding: 155px 15px 50px;
    }


    .login-card {

        padding: 25px 20px;
    }


    .login-header h1 {

        font-size: 40px;

        letter-spacing: -1px;
    }


    .password-label {

        align-items: flex-start;

        flex-direction: column;

        gap: 0;
    }


    .forgot-link {

        margin-top: -2px;
    }


    .form-group input {

        height: 50px;
    }


    #loginButton {

        height: 50px;
    }


    .footer-content {

        flex-direction: column;

        align-items: center;

        gap: 8px;

        text-align: center;
    }
}


/* =========================================
   PETIT MOBILE
========================================= */

@media (max-width: 400px) {

    .login-card {

        padding: 22px 17px;
    }


    .login-header h1 {

        font-size: 35px;
    }


    .badge {

        font-size: 10px;

        letter-spacing: 1.5px;
    }
}