/*
 * Lobo Internet Services
 * Webmail Email Security Notice
 *
 * Uses Roundcube/Lobo's existing #login-addon layout area.
 */


/* =========================================================
   NOTICE CONTAINER
   ========================================================= */

#login-addon.lobo-security-notice {
    box-sizing: border-box;

    /*
     * Override the Lobo skin's width:auto !important.
     */
    width: calc(100% - 2rem) !important;
    max-width: 760px;

    /*
     * Keep Roundcube's existing absolute bottom positioning,
     * but control our own spacing.
     */
    margin: 0 auto !important;

    padding: 17px 20px 18px;

    background: #1c252a;

    border: 1px solid #3b494f;
    border-left: 5px solid #f5a028;

    border-radius: 8px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.20);

    color: #d5dadd;

    font-size: 14px;
    line-height: 1.5;

    text-align: left;

    /*
     * Roundcube already limits #login-addon to 30% height.
     * Explicitly preserve that behavior so shrinking the
     * browser cannot cause the notice to cover the login form.
     */
    max-height: 30vh;

    overflow-y: auto;
    overflow-x: hidden;
}


/* =========================================================
   HEADING
   ========================================================= */

#login-addon .lobo-security-heading {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0 0 12px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 600;
}


#login-addon .lobo-security-icon {
    display: inline-flex;

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

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    border: 1px solid #f5a028;
    border-radius: 50%;

    color: #f5a028;

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

    line-height: 1;
}


/* =========================================================
   TEXT
   ========================================================= */

#login-addon .lobo-security-content {
    margin: 0;
    padding: 0;
}


#login-addon .lobo-security-content p {
    margin: 0 0 10px;
    padding: 0;
}


#login-addon .lobo-security-content p:last-child {
    margin-bottom: 0;
}


#login-addon .lobo-security-content strong {
    color: #ffffff;

    font-weight: 600;
}


/* =========================================================
   LINK
   ========================================================= */

#login-addon .lobo-security-examples {
    color: #f5a028;

    font-weight: 600;

    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: break-word;
}


#login-addon .lobo-security-examples:hover,
#login-addon .lobo-security-examples:focus {
    color: #ffb64c;

    text-decoration: underline;
}


/* =========================================================
   MEDIUM-WIDTH SCREENS
   ========================================================= */

@media screen and (max-width: 800px) {

    #login-addon.lobo-security-notice {
        width: calc(100% - 1.5rem) !important;

        max-width: 650px;

        padding: 15px 17px;

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


    #login-addon .lobo-security-heading {
        margin-bottom: 10px;

        font-size: 16px;
    }

}


/* =========================================================
   PHONES / VERY NARROW WINDOWS
   ========================================================= */

@media screen and (max-width: 480px) {

    #login-addon.lobo-security-notice {
        width: calc(100% - 1rem) !important;

        padding: 12px 14px;

        border-left-width: 4px;

        font-size: 12px;
        line-height: 1.4;

        max-height: 28vh;
    }


    #login-addon .lobo-security-heading {
        gap: 8px;

        margin-bottom: 8px;

        font-size: 14px;
    }


    #login-addon .lobo-security-icon {
        flex-basis: 21px;

        width: 21px;
        height: 21px;

        font-size: 12px;
    }


    #login-addon .lobo-security-content p {
        margin-bottom: 8px;
    }

}


/* =========================================================
   SHORT BROWSER WINDOWS
   ========================================================= */

@media screen and (max-height: 700px) {

    #login-addon.lobo-security-notice {
        max-height: 25vh;

        padding-top: 11px;
        padding-bottom: 11px;

        font-size: 12px;
        line-height: 1.35;
    }


    #login-addon .lobo-security-heading {
        margin-bottom: 7px;

        font-size: 14px;
    }


    #login-addon .lobo-security-content p {
        margin-bottom: 7px;
    }

}


/* Extremely short browser window */
@media screen and (max-height: 550px) {

    #login-addon.lobo-security-notice {
        max-height: 21vh;
    }

}
