/* NETPLEX theme for Horde 6.
 * Login page recreates the classic NETPLEX WebMail look:
 * white page, WebMailLogin banner, compact form, teal/gold links, footer. */

.horde-responsive {
    --horde-primary: #006666;
    --horde-primary-dark: #005555;
}

/* ---- Login page ---------------------------------------------------- */
.horde-responsive.login-page {
    background: #fff;
    align-items: flex-start;
    padding-top: 0;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.horde-responsive .login-card {
    max-width: 600px;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    padding: 0 12px;
}

/* Banner replaces the Horde logo */
.horde-responsive .login-logo {
    width: 100%;
    max-width: 598px;
    aspect-ratio: 598 / 211;
    margin: 0 auto 16px;
    background: url("graphics/WebMailLogin.gif") center / contain no-repeat;
}
.horde-responsive .login-logo img,
.horde-responsive.login-page .card-header {
    display: none;
}

/* Compact classic form */
.horde-responsive #horde_login {
    max-width: 300px;
    margin: 0 auto;
}
.horde-responsive.login-page .form-group {
    margin-bottom: 10px;
}
.horde-responsive.login-page .form-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}
.horde-responsive.login-page .form-input,
.horde-responsive.login-page select {
    color: #000;
    background: #f3f3f9;
    border: 1px solid #000;
    border-radius: 0;
    padding: 5px 6px;
}
.horde-responsive.login-page .form-input:focus,
.horde-responsive.login-page select:focus {
    background: #fff;
    border-color: #006666;
    outline: none;
}
.horde-responsive.login-page .btn-primary {
    color: #fff;
    background: #006666;
    border: 1px solid #c4c4b8;
    border-bottom-color: #333;
    border-right-color: #000;
    border-radius: 5px;
}
.horde-responsive.login-page .btn-primary:hover:not(:disabled) {
    background: #007777;
    box-shadow: none;
}

/* MOTD area holds the footer: no box */
.horde-responsive .login-motd {
    margin-top: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
}

/* ---- NETPLEX footer ------------------------------------------------ */
.netplex-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    font-family: Verdana, Arial, sans-serif;
    font-size: 10px;
    line-height: 1.5;
}
.netplex-footer a.links {
    color: #006666;
    font-weight: bold;
    text-decoration: none;
}
.netplex-footer a.links:hover,
.netplex-footer a.links:active {
    color: #ffcc00;
}
.netplex-footer .legals {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: bold;
    color: #333;
}
.netplex-footer .netplex-phone {
    text-align: right;
    font-weight: bold;
    color: #333;
}
.netplex-footer .netplex-phone .lbl {
    color: #006666;
}
altcha-widget#netplex-altcha {
    display: block;
}

/* ---- Top bar: NETPLEX instead of the Horde logo/version ----------- */
#horde-logo {
    width: auto;
    background-image: none;
}
#horde-logo a.icon {
    display: block;
    width: auto;
    height: 34px;
    padding: 0 14px 0 10px;
    text-decoration: none;
}
#horde-logo a.icon::after {
    content: "NETPLEX";
    color: #fff;
    font: bold 18px/34px Verdana, Geneva, Arial, sans-serif;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #000;
}
#horde-version {
    display: none;
}

/* NETPLEX: hide "Connected Accounts" (Horde 6 OAuth, not used here) */
li:has(> .horde-drowdown-str > a[href$="/settings/oauth/"]) { display: none !important; }
