/*
 * Radio Emergency Webmail Login V1
 * Roundcube Elastic 1.6.x
 * © 2026 Mario Mielke
 */


/* ============================================================
   Grundlayout
   ============================================================ */

body.task-login {
    margin: 0 !important;
    padding: 0 !important;

    background: #172327 !important;
}


body.task-login #layout {
    width: 100%;
    height: 100%;

    background: #172327;
}


body.task-login #layout-content.re-webmail-layout {
    width: 100% !important;
    height: 100% !important;

    display: block !important;

    padding: 0 !important;
    margin: 0 !important;

    text-align: left !important;

    background:
        linear-gradient(
            110deg,
            #17282e 0%,
            #202729 55%,
            #082532 100%
        ) !important;

    overflow: hidden !important;
}


.re-webmail-page {
    width: 100%;
    height: 100%;

    display: grid;

    grid-template-rows:
        82px
        minmax(0, 1fr)
        30px;

    overflow: hidden;
}


/* ============================================================
   Header
   ============================================================ */

.re-webmail-header {
    height: 82px;

    box-sizing: border-box;

    padding: 9px 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        rgba(29, 36, 38, .98);

    border-bottom:
        1px solid rgba(255,255,255,.09);
}


.re-webmail-brand {
    display: flex;
    align-items: center;

    gap: 22px;
}


.re-webmail-logo {
    display: block;

    width: 158px;
    max-height: 61px;

    object-fit: contain;
}


.re-webmail-brand-separator {
    width: 1px;
    height: 44px;

    background:
        rgba(255,255,255,.15);
}


.re-webmail-brand-title {
    color: #f4f5f5;

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

    line-height: 1.2;
}


.re-webmail-brand-subtitle {
    margin-top: 3px;

    color: #aaa9a3;

    font-size: 13px;
}


.re-webmail-status {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 15px;

    border:
        1px solid rgba(52,211,153,.36);

    border-radius: 30px;

    background:
        rgba(20,105,78,.15);

    color: #6be3b8;

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


.re-webmail-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #42dda6;

    box-shadow:
        0 0 12px rgba(66,221,166,.68);
}


/* ============================================================
   Hauptbereich
   ============================================================ */

.re-webmail-main {
    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(480px, .92fr);

    overflow: hidden;
}


/* ============================================================
   Hero links
   ============================================================ */

.re-webmail-hero {
    position: relative;

    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-right:
        1px solid rgba(255,255,255,.06);
}


.re-webmail-photo {
    position: absolute;

    inset: 0;

    background-image:
        url("/images/re/re-background.jpg");

    background-repeat:
        no-repeat;

    background-position:
        center center;

    background-size:
        cover;

    filter:
        saturate(.72)
        brightness(.58)
        contrast(1.04);

    transform:
        scale(1.02);
}


.re-webmail-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(11,29,37,.92) 0%,
            rgba(11,29,37,.71) 47%,
            rgba(11,29,37,.38) 100%
        );
}


.re-webmail-hero-content {
    position: relative;

    z-index: 2;

    width: min(620px, 80%);

    margin-left:
        clamp(45px, 7vw, 125px);
}


.re-webmail-kicker {
    margin-bottom: 17px;

    color: #47dbdc;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: .18em;
}


.re-webmail-hero h2 {
    margin: 0 0 22px !important;

    color: #f4f2ec !important;

    font-size:
        clamp(54px, 5vw, 77px) !important;

    font-weight: 750 !important;

    line-height: .96 !important;

    letter-spacing: -.045em;
}


.re-webmail-hero h2 span {
    color: #40cbc6;
}


.re-webmail-hero p {
    max-width: 570px;

    margin: 0 0 25px;

    color: #d6d5cf;

    font-size: 16px;

    line-height: 1.55;
}


.re-webmail-features {
    max-width: 520px;

    display: grid;

    gap: 7px;

    margin-bottom: 24px;
}


.re-webmail-feature {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 8px 12px;

    border:
        1px solid rgba(255,255,255,.08);

    border-radius: 10px;

    background:
        rgba(10,30,37,.30);

    backdrop-filter:
        blur(4px);
}


.re-webmail-feature > span {
    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(61,211,216,.44);

    border-radius: 50%;

    background:
        rgba(24,144,151,.14);

    color: #4be2db;

    font-weight: 800;
}


.re-webmail-feature strong {
    display: block;

    color: #edf5f6;

    font-size: 12px;
}


.re-webmail-feature small {
    display: block;

    margin-top: 1px;

    color: #93a8af;

    font-size: 10px;
}


.re-webmail-slogan {
    color: #f4eee5;

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


/* ============================================================
   Login rechts
   ============================================================ */

.re-webmail-login-area {
    min-height: 0;

    display: flex;

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

    padding:
        30px
        clamp(38px, 5vw, 88px);

    box-sizing: border-box;
}


.re-webmail-card {
    width: 100%;
    max-width: 520px;

    box-sizing: border-box;

    padding: 27px 36px 22px;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(57,63,64,.98),
            rgba(42,48,49,.98)
        );

    box-shadow:
        0 25px 75px
        rgba(0,0,0,.25);
}


.re-webmail-card-line {
    width: 65px;
    height: 4px;

    margin-bottom: 19px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            #43d2c4,
            #258ed4
        );
}


.re-webmail-card-header {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 23px;
}


.re-webmail-mail-icon {
    flex: 0 0 51px;

    width: 51px;
    height: 51px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(61,202,245,.35);

    border-radius: 13px;

    background:
        rgba(0,113,172,.15);

    color: #4bd8fb;

    font-size: 25px;
}


.re-webmail-card-header h2 {
    margin: 0 0 3px !important;

    color: #f6f4ef !important;

    font-size: 25px !important;

    font-weight: 750 !important;

    line-height: 1.15 !important;
}


.re-webmail-card-header p {
    margin: 0;

    color: #cfc3b3;

    font-size: 13px;

    line-height: 1.35;
}


/* ============================================================
   Roundcube Loginform
   ============================================================ */

body.task-login #logo {
    display: none !important;
}


body.task-login #login-form {
    position: static !important;

    top: auto !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    color: #f0f4f5;
}


body.task-login #login-form table,
body.task-login #login-form tbody {
    width: 100%;

    display: block;
}


body.task-login #login-form tr,
body.task-login #login-form .form-group.row {
    width: 100%;

    display: block;

    margin:
        0 0 13px !important;
}


body.task-login #login-form td {
    width: 100% !important;

    display: block !important;

    max-width: none !important;

    padding: 0 !important;
}


body.task-login #login-form label,
body.task-login #login-form .col-form-label {
    width: 100% !important;

    display: block;

    margin: 0 0 5px !important;

    padding: 0 !important;

    color: #f1e8d8;

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

    text-align: left;
}


body.task-login #login-form .input-group {
    width: 100%;
}


body.task-login #login-form .input-group-text {
    min-width: 42px;

    justify-content: center;

    border:
        1px solid #3a6179;

    border-right: 0;

    background: #263339;

    color: #6dcced;
}


body.task-login #login-form input.form-control {
    height: 45px !important;

    border:
        1px solid #3a6179 !important;

    background:
        #20282b !important;

    color:
        #f5f7f8 !important;

    box-shadow:
        none !important;
}


body.task-login #login-form input.form-control:focus {
    border-color:
        #35c7c5 !important;

    box-shadow:
        0 0 0 3px
        rgba(53,199,197,.12)
        !important;
}


body.task-login #login-form .formbuttons {
    display: block !important;

    padding: 0 !important;
    margin: 16px 0 0 !important;

    text-align: initial !important;
}


body.task-login #rcmloginsubmit {
    width: 100% !important;

    min-height: 45px;

    margin: 0 !important;

    border: 0 !important;

    border-radius:
        9px !important;

    background:
        linear-gradient(
            90deg,
            #43c8bd,
            #45dfd3
        ) !important;

    color:
        #061d21 !important;

    font-size:
        15px !important;

    font-weight:
        800 !important;

    box-shadow:
        none !important;
}


body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus {
    filter:
        brightness(1.06);
}


/* Passwort vergessen */

.re-webmail-forgot {
    margin-top: 11px;

    text-align: center;
}


.re-webmail-forgot a {
    color:
        #52d5ef !important;

    font-size:
        12px;

    text-decoration:
        none !important;
}


.re-webmail-forgot a:hover {
    text-decoration:
        underline !important;
}


/* Sicherheitsbox */

.re-webmail-security {
    margin-top: 18px;

    padding: 11px 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid rgba(54,190,235,.25);

    border-radius: 10px;

    background:
        rgba(0,89,130,.10);
}


.re-webmail-security-icon {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(66,213,237,.35);

    border-radius: 9px;

    color: #52d9ed;
}


.re-webmail-security strong {
    display: block;

    margin-bottom: 2px;

    color: #54d5ee;

    font-size: 10px;

    letter-spacing: .06em;
}


.re-webmail-security span {
    display: block;

    color: #c8d5d9;

    font-size: 10px;

    line-height: 1.4;
}


/* Roundcube-Erweiterungsfooter im Formular */

.re-roundcube-login-footer {
    margin-top: 10px !important;

    padding: 0 !important;

    min-height: 0 !important;

    color: #9ba7aa !important;

    font-size: 10px !important;

    text-align: center;
}


.re-roundcube-login-footer:empty {
    display: none;
}


/* ============================================================
   Seitenfooter
   ============================================================ */

.re-webmail-footer {
    height: 30px;

    box-sizing: border-box;

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

    gap: 7px;

    padding: 0 12px;

    border-top:
        1px solid rgba(255,255,255,.07);

    background:
        rgba(25,31,33,.98);

    color: #9da8ac;

    font-size: 10px;

    white-space: nowrap;
}


.re-webmail-footer span {
    color: #4bcbd3;
}


.re-webmail-footer b {
    color: #687479;

    font-weight: 400;
}


/* ============================================================
   Notebook
   ============================================================ */

@media
    (min-width: 1001px)
    and (max-height: 760px) {

    .re-webmail-page {
        grid-template-rows:
            70px
            minmax(0,1fr)
            28px;
    }

    .re-webmail-header {
        height: 70px;

        padding:
            6px 42px;
    }

    .re-webmail-logo {
        width: 140px;
        max-height: 52px;
    }

    .re-webmail-hero h2 {
        font-size:
            clamp(44px, 4.2vw, 60px)
            !important;
    }

    .re-webmail-hero p {
        margin-bottom: 14px;

        font-size: 14px;
    }

    .re-webmail-feature {
        padding: 5px 10px;
    }

    .re-webmail-card {
        padding:
            18px 30px 15px;
    }

    .re-webmail-card-header {
        margin-bottom: 15px;
    }

    .re-webmail-security {
        margin-top: 11px;
    }

}


/* ============================================================
   Tablet / Mobil
   ============================================================ */

@media (max-width: 1000px) {

    body.task-login,
    body.task-login #layout,
    body.task-login #layout-content.re-webmail-layout {
        min-height:
            100vh !important;

        height:
            auto !important;

        overflow-y:
            auto !important;
    }


    .re-webmail-page {
        min-height: 100vh;
        height: auto;

        grid-template-rows:
            auto
            minmax(0,1fr)
            auto;

        overflow: visible;
    }


    .re-webmail-header {
        min-height: 70px;
        height: auto;

        padding:
            8px 18px;
    }


    .re-webmail-logo {
        width: 137px;
    }


    .re-webmail-brand-separator,
    .re-webmail-brand-text {
        display: none;
    }


    .re-webmail-status {
        padding:
            7px 10px;

        font-size:
            11px;
    }


    .re-webmail-main {
        display: block;
    }


    .re-webmail-hero {
        display: none;
    }


    .re-webmail-login-area {
        min-height:
            calc(100vh - 110px);

        padding:
            30px 18px;
    }


    .re-webmail-card {
        max-width:
            520px;

        padding:
            25px 25px 20px;
    }


    .re-webmail-footer {
        min-height: 32px;
        height: auto;

        padding:
            8px 10px;

        white-space:
            normal;

        text-align:
            center;
    }

}


/* sehr kleine Displays */

@media (max-width: 430px) {

    .re-webmail-card {
        border-radius: 16px;

        padding:
            22px 18px 18px;
    }


    .re-webmail-card-header h2 {
        font-size:
            21px !important;
    }


    .re-webmail-mail-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;

        font-size: 21px;
    }

}

/* ============================================================
   Radio Emergency Webmail Login FIX V2
   Roundcube Elastic Tabellenstruktur
   ============================================================ */


/*
 * Roundcube erzeugt:
 *
 * table
 *   tr
 *     td.title
 *     td.input
 *
 * Diese Struktur wird für unsere Login-Card vertikal aufgebaut.
 */

body.task-login #login-form table {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    table-layout: auto !important;
}


body.task-login #login-form tbody {
    display: block !important;

    width: 100% !important;
}


body.task-login #login-form tr {
    display: block !important;

    width: 100% !important;

    margin: 0 0 13px !important;
    padding: 0 !important;
}


body.task-login #login-form td.title,
body.task-login #login-form td.input {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


body.task-login #login-form td.title {
    margin-bottom: 5px !important;
}


body.task-login #login-form td.title label {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #f1e8d8 !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    line-height: 1.4 !important;

    text-align: left !important;
}


/*
 * Benutzername und Passwort garantiert volle Breite.
 */

body.task-login #rcmloginuser,
body.task-login #rcmloginpwd {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 46px !important;

    margin: 0 !important;
    padding: 9px 13px !important;

    box-sizing: border-box !important;

    border:
        1px solid #3a6179 !important;

    border-radius:
        9px !important;

    background:
        #20282b !important;

    color:
        #f5f7f8 !important;

    font-size:
        14px !important;

    line-height:
        1.4 !important;

    box-shadow:
        none !important;
}


body.task-login #rcmloginuser:focus,
body.task-login #rcmloginpwd:focus {
    border-color:
        #35c7c5 !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 3px
        rgba(53,199,197,.12)
        !important;
}


/*
 * Eventuelle Elastic-Icon-/Input-Wrapper dürfen
 * die Eingabefelder nicht zusammendrücken.
 */

body.task-login #login-form td.input > *,
body.task-login #login-form td.input .input-group,
body.task-login #login-form td.input .form-control {
    width: 100% !important;

    min-width: 0 !important;
    max-width: none !important;

    box-sizing:
        border-box !important;
}


/*
 * Falls Elastic Icons über zusätzliche Elemente einblendet,
 * darf der Wrapper nicht vertikal umbrechen.
 */

body.task-login #login-form .input-group {
    display: flex !important;

    flex-wrap: nowrap !important;

    width: 100% !important;
}


body.task-login #login-form .input-group .form-control {
    flex:
        1 1 auto !important;

    width:
        1% !important;
}


/*
 * Hidden-Felder bleiben selbstverständlich unsichtbar.
 */

body.task-login #login-form input[type="hidden"] {
    display: none !important;
}

/* RE-WEBMAIL-LOGIN-FIX-V2-END */











/* RE-PASSWORD-TEXT-TOGGLE-V6-BEGIN */

body.task-login #login-form .re-password-text-toggle {
    display: block !important;

    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 7px 4px 0 auto !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #35c7c5 !important;

    font: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;

    line-height: 1.2 !important;

    cursor: pointer !important;

    box-shadow: none !important;
    outline: none !important;
}

body.task-login #login-form .re-password-text-toggle:hover {
    text-decoration: underline !important;
}

body.task-login #login-form .re-password-text-toggle:focus-visible {
    text-decoration: underline !important;
    outline: 1px solid #35c7c5 !important;
    outline-offset: 3px !important;
}

/* RE-PASSWORD-TEXT-TOGGLE-V6-END */
