/* ========================================
   HEADER
======================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    padding: 30px 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 10;
}


/* ========================================
   LOGGA IN KNAPP
======================================== */

.login-button {
    background: transparent;
    border: 1px solid #444444;

    color: #ffffff;

    padding: 10px 20px;

    border-radius: 8px;

    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;
}

.login-button:hover {
    background: #ffffff;
    color: #000000;
}


/* ========================================
   MÖRK BAKGRUND BAKOM POPUP
======================================== */

.auth-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    z-index: 1000;
}

.auth-overlay.active {
    display: flex;
}


/* ========================================
   POPUP
======================================== */

.auth-modal {
    position: relative;

    width: 100%;
    max-width: 420px;

    background: #111111;

    border: 1px solid #2c2c2c;
    border-radius: 18px;

    padding: 42px;

    color: #ffffff;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}


/* ========================================
   STÄNG KNAPP
======================================== */

.close-auth {
    position: absolute;

    top: 15px;
    right: 18px;

    border: none;
    background: transparent;

    color: #888888;

    font-size: 30px;

    cursor: pointer;
}

.close-auth:hover {
    color: #ffffff;
}


/* ========================================
   RUBRIKER
======================================== */

.auth-modal h2 {
    font-size: 30px;
    text-align: center;

    margin-bottom: 8px;
}

.auth-subtitle {
    color: #888888;

    text-align: center;

    margin-bottom: 30px;
}


/* ========================================
   GOOGLE
======================================== */

.google-button {
    width: 100%;

    height: 48px;

    background: #ffffff;
    color: #111111;

    border: none;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.google-button:hover {
    background: #e9e9e9;
}

.google-icon {
    margin-right: 10px;

    font-weight: 700;
}


/* ========================================
   ELLER
======================================== */

.auth-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 25px 0;
}

.auth-divider span {
    flex: 1;

    height: 1px;

    background: #333333;
}

.auth-divider p {
    color: #777777;

    font-size: 13px;
}


/* ========================================
   FORMULÄR
======================================== */

.auth-modal label {
    display: block;

    color: #bbbbbb;

    font-size: 13px;

    margin-bottom: 7px;
}

.auth-modal input {
    width: 100%;
    height: 48px;

    background: #191919;

    border: 1px solid #333333;
    border-radius: 8px;

    color: #ffffff;

    padding: 0 14px;

    margin-bottom: 18px;

    font-size: 15px;

    outline: none;
}

.auth-modal input:focus {
    border-color: #777777;
}


/* ========================================
   HUVUDKNAPP
======================================== */

.primary-auth-button {
    width: 100%;
    height: 48px;

    border: none;
    border-radius: 8px;

    background: #ffffff;
    color: #000000;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    margin-top: 5px;
}

.primary-auth-button:hover {
    background: #dddddd;
}


/* ========================================
   BYT LOGIN / REGISTER
======================================== */

.switch-auth {
    margin-top: 25px;

    text-align: center;

    color: #777777;

    font-size: 14px;
}

.switch-auth button {
    border: none;
    background: transparent;

    color: #ffffff;

    font-weight: 600;

    cursor: pointer;
}


/* ========================================
   FELMEDDELANDE
======================================== */

.auth-error {
    color: #ff7070;

    font-size: 13px;

    margin-bottom: 12px;
}


/* ========================================
   DÖLJ
======================================== */

.hidden {
    display: none;
}
/* ========================================
   MOBIL
======================================== */

@media (max-width: 600px) {

    /* HEADER */

    .header {
        position: relative;

        width: 100%;

        padding: 20px;

        display: flex;
        justify-content: flex-end;
        align-items: center;
    }


    /* LOGGA IN */

    .login-button {
        padding: 9px 15px;

        font-size: 14px;

        border-radius: 8px;
    }


    /* LOGIN POPUP */

    .auth-overlay {
        padding: 16px;
    }

    .auth-modal {
        width: 100%;
        max-width: 400px;

        padding: 38px 22px 28px;

        border-radius: 16px;
    }


    /* INPUTS */

    .auth-modal input {
        height: 50px;

        font-size: 16px;
    }


    /* KNAPPAR */

    .google-button,
    .primary-auth-button {
        height: 50px;
    }

}
/* ========================================
   ANVÄNDARNAMN - DATOR / MOBIL
======================================== */

.desktop-user-name {
    display: inline;
}

.mobile-user-name {
    display: none;
}


/* MOBIL */

@media (max-width: 600px) {

    .desktop-user-name {
        display: none !important;
    }

    .mobile-user-name {
        display: inline !important;
    }

    .login-button.logged-in {
        max-width: 140px;
        padding: 9px 14px;

        white-space: nowrap;
        overflow: hidden;
    }

}