﻿/* ===== Design System Colors ===== */
:root {
    --se-life-green: #3DCD58;
    --se-super-life-green: #24B43F;
    --se-dark-sky-blue: #0087CD;
    --se-ultra-dark-grey: #2F3136;
    --se-dark-grey-2: #505559;
    --se-medium-grey: #9FA0A4;
    --se-light-grey: #CBCBCB;
    --se-super-light-grey: #E6E6E6;
    --se-white: #FFFFFF;
    --se-anthracite-grey: #333333;
}

/* ===== Login Page Container ===== */
.login-villen {
    margin: 6px 0 12px;
}

.login-villen-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    gap: 12px;
    align-items: stretch;
}

/* ===== Card Base ===== */
.login-card {
    min-height: 0;
    height: 100%;
    padding: 12px 16px;
    border: 1px solid var(--se-light-grey);
    border-radius: 3px;
    background: var(--se-white);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    font-family: "Arial Rounded MT", "Helvetica Neue", sans-serif;
}

/* ===== Card Title ===== */
.login-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--se-life-green);
    font-size: 28px;
    line-height: 36px;
    font-weight: 400;
}

.login-title-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

/* ===== Block Content ===== */
.login-block {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--se-super-light-grey);
}

    .login-block:first-of-type {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .login-block h3 {
        margin: 0 0 2px;
        color: var(--se-ultra-dark-grey);
        font-size: 20px;
        line-height: 26px;
        font-weight: 700;
    }

    .login-block p {
        margin: 0 0 4px;
        color: var(--se-dark-grey-2);
        font-size: 15px;
        line-height: 22px;
    }

    .login-block a,
    .login-help a,
    .login-link-external {
        color: var(--se-life-green);
        text-decoration: none;
    }

        .login-block a:hover,
        .login-help a:hover,
        .login-link-external:hover {
            text-decoration: underline;
        }

/* ===== Lists ===== */
.login-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc outside;
}

    .login-list li {
        margin: 1px 0;
        color: var(--se-dark-grey-2);
        font-size: 15px;
        line-height: 22px;
    }

.login-list-check {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

    .login-list-check li {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 15px;
        line-height: 22px;
    }

        .login-list-check li:before {
            content: "";
            width: 24px;
            height: 24px;
            flex: 0 0 24px;
            margin-top: 1px;
            background: url("../img/notification_ok_wired.svg") no-repeat center / 24px 24px;
        }

/* ===== Support Section Icons ===== */
.login-support-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 10px;
    align-items: start;
}

.login-support-iconcol {
    width: 40px;
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.login-support-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.login-support-textcol .login-list {
    margin-top: 1px;
}

/* ===== Form Elements ===== */
.login-form-row {
    margin-bottom: 8px;
}

    .login-form-row label {
        display: block;
        margin-bottom: 4px;
        color: var(--se-ultra-dark-grey);
        font-size: 13px;
        line-height: 18px;
        font-weight: 700;
    }

.login-input {
    width: 100%;
    height: 38px;
    padding: 7px 10px;
    box-sizing: border-box;
    border: 1px solid var(--se-medium-grey);
    border-radius: 3px;
    background: var(--se-white);
    color: var(--se-ultra-dark-grey);
    font-family: "Arial Rounded MT", "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 22px;
}

    .login-input:focus {
        outline: none;
        border-color: var(--se-dark-sky-blue);
        box-shadow: 0 0 0 2px rgba(61, 205, 88, 0.08);
    }

/* ===== Submit Button ===== */
.login-submit {
    width: 100%;
    height: 40px;
    margin: 4px 0 8px;
    border: 0;
    border-radius: 3px;
    background: var(--se-life-green);
    color: var(--se-white);
    font-family: "Arial Rounded MT", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 25px;
    cursor: pointer;
}

    .login-submit:hover {
        background: var(--se-super-life-green);
    }

/* ===== Error Message ===== */
.login-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 15px;
}

/* ===== Help Block ===== */
.login-help {
    padding-top: 4px;
    color: var(--se-dark-grey-2);
    font-size: 15px;
    line-height: 22px;
}

    .login-help p {
        margin: 2px 0 0;
    }

.login-help-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 10px;
    align-items: start;
}

.login-help-iconcol {
    width: 36px;
    display: flex;
    justify-content: center;
    padding-top: 1px;
}

.login-help-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ===== Link Icons ===== */
.login-link-mail,
.login-link-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 18px;
    vertical-align: middle;
}

    .login-link-mail:before {
        content: "";
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        background: url("../img/mail.svg") no-repeat center / 24px 24px;
    }

    .login-link-phone:before {
        content: "";
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        background: url("../img/phone.svg") no-repeat center / 24px 24px;
    }

.login-link-external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 18px;
}

    .login-link-external:before {
        content: "";
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        background: url("../img/action_new_window.svg") no-repeat center / 24px 24px;
    }

    .login-link-external:after {
        content: "";
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        background: url("../img/arrow2_right.svg") no-repeat center / 24px 24px;
    }

/* ===== CTA Button ===== */
.login-outline-btn {
    display: inline-block;
    min-width: 220px;
    padding: 8px 14px;
    border: 1px solid var(--se-life-green);
    border-radius: 3px;
    text-align: center;
    color: var(--se-life-green);
    font-family: "Arial Rounded MT", "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 22px;
    text-decoration: none;
}

    .login-outline-btn:hover {
        background: var(--se-super-light-grey);
    }

/* ===== Responsive Design ===== */

/* Tablet: 768px - 1240px (2-column or single column) */
@media (max-width: 1240px) {
    .login-villen-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .login-card-right {
        grid-column: 1 / -1;
    }
}

/* Small Tablet / Large Phone: Below 768px (1-column mobile) */
@media (max-width: 768px) {
    .login-villen-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        min-height: auto;
    }

    .login-card-main {
        order: 1;
    }

    .login-card-left {
        order: 2;
    }

    .login-card-right {
        order: 3;
    }
}