/**
 * HayMe Dashboard V2 Login
 *
 * Version: 1.0.0
 * Author: Werbeagentur Haypix
 */


/* =========================================================
   Basis
   ========================================================= */

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #0b0b0c;
}


body.hayme-v2-login-page {
    margin: 0;
    padding: 0;

    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(198, 37, 40, 0.18) 0,
            rgba(198, 37, 40, 0.06) 24%,
            transparent 48%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 255, 255, 0.035) 0,
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #0f0f10 0%,
            #09090a 52%,
            #050506 100%
        );

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

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

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


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

.hayme-v2-login-shell {
    position: relative;

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

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    padding:
        max(28px, env(safe-area-inset-top))
        max(20px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));

    overflow: hidden;
}


.hayme-v2-login-shell::before {
    content: "";

    position: absolute;
    top: 10%;
    left: 50%;

    width: 460px;
    height: 460px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(198, 37, 40, 0.10) 0,
            rgba(198, 37, 40, 0.035) 38%,
            transparent 70%
        );

    filter: blur(10px);

    pointer-events: none;
}


/* =========================================================
   Login-Karte
   ========================================================= */

.hayme-v2-login-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 470px;

    padding: 42px 42px 32px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(38, 38, 40, 0.96) 0%,
            rgba(25, 25, 27, 0.98) 46%,
            rgba(17, 17, 19, 0.99) 100%
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


.hayme-v2-login-card::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.22) 50%,
            transparent 100%
        );

    pointer-events: none;
}


.hayme-v2-login-card::after {
    content: "";

    position: absolute;
    top: 16%;
    right: -2px;

    width: 3px;
    height: 90px;

    border-radius: 4px 0 0 4px;

    background:
        linear-gradient(
            180deg,
            rgba(239, 57, 64, 0) 0%,
            rgba(239, 57, 64, 0.95) 48%,
            rgba(198, 37, 40, 0) 100%
        );

    box-shadow:
        0 0 18px rgba(214, 36, 42, 0.60);

    pointer-events: none;
}


/* =========================================================
   Logo
   ========================================================= */

.hayme-v2-login-brand {
    display: flex;
    justify-content: center;

    margin: 0 0 28px;
}


.hayme-v2-login-logo {
    display: block;

    width: auto;
    max-width: 205px;
    height: auto;
    max-height: 74px;

    object-fit: contain;
}


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

.hayme-v2-login-header {
    margin: 0 0 30px;

    text-align: center;
}


.hayme-v2-login-title {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 29px;
    font-weight: 750;
    line-height: 1.16;

    letter-spacing: -0.7px;
}


.hayme-v2-login-description {
    margin: 0 auto;

    max-width: 340px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 14.5px;
    font-weight: 450;
    line-height: 1.55;
}


/* =========================================================
   Fehler
   ========================================================= */

.hayme-v2-login-error {
    margin: -6px 0 23px;
    padding: 13px 15px;

    border: 1px solid rgba(239, 57, 64, 0.30);
    border-radius: 12px;

    color: #ffd7d8;

    background:
        rgba(198, 37, 40, 0.10);

    box-shadow:
        inset 3px 0 0 #d6242a;

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


/* =========================================================
   Formular
   ========================================================= */

.hayme-v2-login-form {
    display: block;
    width: 100%;
}


.hayme-v2-login-field {
    margin: 0 0 19px;
}


.hayme-v2-login-label {
    display: block;

    margin: 0 0 8px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}


.hayme-v2-login-input {
    display: block;

    width: 100%;
    height: 54px;

    margin: 0;
    padding: 0 16px;

    appearance: none;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    outline: none;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(9, 9, 10, 0.72) 0%,
            rgba(12, 12, 13, 0.90) 100%
        );

    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.025);

    font: inherit;
    font-size: 15px;
    font-weight: 500;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


.hayme-v2-login-input:hover {
    border-color: rgba(255, 255, 255, 0.21);
}


.hayme-v2-login-input:focus {
    border-color: rgba(214, 36, 42, 0.92);

    background:
        linear-gradient(
            180deg,
            rgba(12, 12, 13, 0.86) 0%,
            rgba(15, 15, 16, 0.96) 100%
        );

    box-shadow:
        0 0 0 3px rgba(214, 36, 42, 0.13),
        0 0 20px rgba(214, 36, 42, 0.08),
        inset 0 1px 2px rgba(0, 0, 0, 0.40);
}


.hayme-v2-login-input:-webkit-autofill,
.hayme-v2-login-input:-webkit-autofill:hover,
.hayme-v2-login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    transition:
        background-color 9999s ease-out 0s;

    box-shadow:
        0 0 0 1000px #101012 inset;
}


/* =========================================================
   Optionen
   ========================================================= */

.hayme-v2-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin: 4px 0 27px;
}


.hayme-v2-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    color: rgba(255, 255, 255, 0.66);

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

    cursor: pointer;
}


.hayme-v2-login-checkbox {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #d6242a;

    cursor: pointer;
}


.hayme-v2-login-forgot {
    color: rgba(255, 255, 255, 0.72);

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

    text-decoration: none;

    transition:
        color 150ms ease;
}


.hayme-v2-login-forgot:hover,
.hayme-v2-login-forgot:focus-visible {
    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   Login Button
   ========================================================= */

.hayme-v2-login-submit {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 55px;

    margin: 0;
    padding: 0 20px;

    overflow: hidden;

    appearance: none;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;

    outline: none;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #c72528 0%,
            #d6242a 48%,
            #b91f24 100%
        );

    box-shadow:
        0 9px 25px rgba(198, 37, 40, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

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

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}


.hayme-v2-login-submit::before {
    content: "";

    position: absolute;
    top: 0;
    left: -45%;

    width: 32%;
    height: 100%;

    transform: skewX(-18deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.16),
            transparent
        );

    transition:
        left 420ms ease;
}


.hayme-v2-login-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 30px rgba(198, 37, 40, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.23);

    filter: brightness(1.04);
}


.hayme-v2-login-submit:hover::before {
    left: 120%;
}


.hayme-v2-login-submit:active {
    transform: translateY(0);

    box-shadow:
        0 6px 17px rgba(198, 37, 40, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}


.hayme-v2-login-submit:focus-visible {
    box-shadow:
        0 0 0 4px rgba(214, 36, 42, 0.22),
        0 10px 28px rgba(198, 37, 40, 0.32);
}


.hayme-v2-login-submit-arrow {
    display: inline-block;

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform 160ms ease;
}


.hayme-v2-login-submit:hover
.hayme-v2-login-submit-arrow {
    transform: translateX(3px);
}


.hayme-v2-login-submit--link {
    text-decoration: none;
}


/* =========================================================
   Footer
   ========================================================= */

.hayme-v2-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin: 27px 0 0;

    color: rgba(255, 255, 255, 0.36);

    font-size: 11.5px;
    font-weight: 500;
}


.hayme-v2-login-security-dot {
    position: relative;

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

    width: 14px;
    height: 14px;

    color: #d6242a;

    font-size: 14px;
    line-height: 1;
}


.hayme-v2-login-security-dot::before {
    content: "🔒";

    display: block;

    font-size: 13px;

    filter:
        drop-shadow(
            0 0 5px rgba(214, 36, 42, 0.55)
        );
}

/* =========================================================
   Honeypot
   ========================================================= */

.hayme-v2-login-honeypot {
    position: absolute !important;

    left: -99999px !important;
    top: -99999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   Access denied
   ========================================================= */

.hayme-v2-login-card--access
.hayme-v2-login-header {
    margin-bottom: 28px;
}


/* =========================================================
   Tablet / Mobile
   ========================================================= */

@media (max-width: 600px) {

    .hayme-v2-login-shell {
        align-items: center;

        padding:
            max(20px, env(safe-area-inset-top))
            max(15px, env(safe-area-inset-right))
            max(20px, env(safe-area-inset-bottom))
            max(15px, env(safe-area-inset-left));
    }


    .hayme-v2-login-card {
        max-width: 100%;

        padding:
            34px
            23px
            27px;

        border-radius: 22px;
    }


    .hayme-v2-login-brand {
        margin-bottom: 23px;
    }


    .hayme-v2-login-logo {
        max-width: 180px;
        max-height: 64px;
    }


    .hayme-v2-login-header {
        margin-bottom: 27px;
    }


    .hayme-v2-login-title {
        font-size: 25px;

        letter-spacing: -0.5px;
    }


    .hayme-v2-login-description {
        max-width: 300px;

        font-size: 13.5px;
    }


    .hayme-v2-login-input {
        height: 52px;

        border-radius: 12px;
    }


    .hayme-v2-login-options {
        gap: 12px;
    }


    .hayme-v2-login-remember,
    .hayme-v2-login-forgot {
        font-size: 12.5px;
    }


    .hayme-v2-login-submit {
        min-height: 53px;

        border-radius: 13px;
    }

}


/* =========================================================
   Sehr kleine Displays
   ========================================================= */

@media (max-width: 380px) {

    .hayme-v2-login-card {
        padding:
            30px
            18px
            24px;
    }


    .hayme-v2-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }


    .hayme-v2-login-title {
        font-size: 23px;
    }

}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hayme-v2-login-input,
    .hayme-v2-login-forgot,
    .hayme-v2-login-submit,
    .hayme-v2-login-submit::before,
    .hayme-v2-login-submit-arrow {
        transition: none;
    }

}