/* ================================
   CORV CLOUD - DESIGN PRINCIPAL
================================ */

:root {
    --white: #ffffff;
    --background: #ffffff;
    --surface: #ffffff;
    --light-gray: #f7f7f7;
    --border: #e8e8e8;
    --text: #171717;
    --secondary: #777777;
    --muted: #a0a0a0;
    --black: #171717;
    --radius: 12px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* ================================
   BARRE SUPERIEURE
================================ */

.topbar {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-symbol {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: white;
    border-radius: 9px;
    font-size: 19px;
    font-weight: 700;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.brand-name span {
    color: var(--secondary);
    font-weight: 500;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-login {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.topbar-login:hover {
    color: var(--secondary);
}

.menu-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--light-gray);
}

.menu-toggle svg {
    width: 18px;
    height: 18px;
}

.dropdown-menu {
    position: absolute;
    top: 65px;
    right: 6%;
    width: 180px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 11px 12px;
    border-radius: 7px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-gray);
}


/* ================================
   CONTENU PRINCIPAL
================================ */

.main-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 20px;
}

.login-section {
    width: 100%;
    max-width: 420px;
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.login-heading h1 {
    margin-bottom: 11px;
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.1px;
    line-height: 1.3;
}

.login-heading p {
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.7;
}


/* ================================
   CARTE DE CONNEXION
================================ */

.login-card {
    width: 100%;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.035);
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password {
    margin-bottom: 9px;
    padding: 0;
    background: none;
    border: none;
    color: var(--secondary);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.forgot-password:hover {
    color: var(--text);
}

.input-container {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    transition: var(--transition);
}

.input-container:focus-within {
    border-color: #999999;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.035);
}

.input-container > svg {
    width: 17px;
    height: 17px;
    color: var(--muted);
    flex-shrink: 0;
}

.input-container input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
}

.input-container input::placeholder {
    color: #b5b5b5;
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.password-toggle svg {
    width: 17px;
    height: 17px;
}


/* ================================
   BOUTONS
================================ */

.primary-button {
    width: 100%;
    height: 48px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 9px;
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary-button:hover {
    background: #333333;
}

.primary-button svg {
    width: 16px;
    height: 16px;
}

.google-button {
    width: 100%;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.google-button:hover {
    background: var(--light-gray);
}

.google-button svg {
    width: 17px;
    height: 17px;
}


/* ================================
   SEPARATEUR
================================ */

.separator {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 23px 0;
}

.separator span {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.separator p {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}


/* ================================
   INSCRIPTION
================================ */

.signup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 25px;
}

.signup-container p {
    color: var(--secondary);
    font-size: 11px;
}

.signup-container button {
    padding: 0;
    border: none;
    background: none;
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.signup-container button:hover {
    text-decoration: underline;
}


/* ================================
   MESSAGES
================================ */

.form-message {
    min-height: 0;
    margin-top: 12px;
    color: #555555;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.form-message:not(:empty) {
    padding: 10px;
    background: var(--light-gray);
    border-radius: 7px;
}


/* ================================
   PIED DE PAGE
================================ */

.footer {
    width: 100%;
    padding: 22px 15px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--muted);
    font-size: 10px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {

    .topbar {
        height: 66px;
        padding: 0 20px;
    }

    .dropdown-menu {
        top: 58px;
        right: 20px;
    }

    .main-container {
        padding: 45px 18px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .login-card {
        padding: 23px 19px;
    }

    .topbar-actions {
        gap: 13px;
    }
}
