@font-face {
	font-family: HelveticaNeueLight;
    src: url("./fonts/HelveticaNeue-Light.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
}

@font-face {
	font-family: HelveticaNeueLight;
    src: url("./fonts/HelveticaNeue-Light.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
	font-family: HelveticaNeueLight;
    src: url("./fonts/HelveticaNeue-Bold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

@keyframes animatedBackground {
    from {
        background-position: 0 bottom;
    }
    to {
        background-position: 100% bottom;
    }
}

@keyframes animatedBackground2 {
    from {
        background-position: 0 bottom;
    }
    to {
        background-position: 100% bottom;
    }
}

div.login_form {
    z-index: 4;
    display: block;
    position: absolute;
    width: auto;
    height: auto;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin-top: 0px;
    margin-left: 0px;
    padding: 0px;
    font-family: "HelveticaNeueLight", "Open Sans", "ProximaNova", Arial, Tahoma, Century Gothic,
        Microsoft New Tai Lue, Arial;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    color: #e5e5e5;
    line-height: 30px;
    border: 0px !important;
    padding-bottom: 00px;
    padding-top: 00px;
    padding-left: 00px;
    border-radius: 0px;
    background: linear-gradient(
        145deg,
        #212534 0%,
        #212534 65%,
        #212534 100%
    ) !important;
}

div.messagebar_success,
div.messagebar_error {
    left:0;
}

div.color_bar {
    display: none;
}

#mc_login_form {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    margin-left: -175px;
    width: 350px;
    margin-top: -80px;
}

div.login_form form input.input,
div.login_form form input.input_username,
div.login_form form input.input_password {
    background-color: rgba(255, 255, 255, 0.9);
    width: calc(100% - 30px);
    height: 38px;
    color: #333333;
    padding: 0px;
    padding-left: 18px;
    padding-right: 12px;
    border-radius: 7px;
    font-weight: normal;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    margin-bottom: 3px;
    border: 0px solid #e5e5e5;
    transition: all 0.3s linear;
}

input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0px 9999px white;
}

div.login_form form input.input {
    padding-left: 0px;
    width: 285px;
}

div.login_form form label {
    display: inline-block;
    width: 130px;
}

div.login_form form input:hover {
    background-color: #e8f0fe;
}

div.login_form form input:focus {
    outline: none;
}

div.login_form form input.input_submit {
    display: block;
    cursor: pointer;
    background: #fe2342;
    color: #ffffff;
    font-size: 14px;
    font-family: "HelveticaNeueLight", Roboto, "Montserrat", Arial;
    padding: 7px 7px 10px 7px;
    font-weight: normal;
    padding-left: 20px;
    padding-right: 20px;
    width: auto;
    text-align: center;
    text-decoration: none;
    border: 0px solid #c3dc71;
    border-bottom: 0px solid #2f5665;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    width: 100%;
    height: 40px;
    margin-top: 8px;
    text-shadow: 0px;
    border-radius: 7px;
    border-bottom: 0px solid #f42043;
    background: #000000;
    color: #ffffff !important;
    transition: all 0.1s ease-in-out;
    background: radial-gradient(circle, rgba(52,142,206,1) 0%, rgba(174,46,141,1) 100%) !important;
    background-size: 200% 200%!important;
}

div.login_form form input.input_submit:hover {
    background-position: 100% 50%!important;
}
div.login_form form input.input_submit:disabled {
    opacity: 0.4;
}
div.login_form form input.input_submit:disabled:hover {
    border-bottom: 0px solid #000000;
    background: #000000;
    color: #fff;
    cursor: default;
    box-shadow: none;
}

div.login_form form input.input_submit:after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: calc(100% - 0px);
    height: 50%;
    background: linear-gradient(
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
}

div.login_form h1 {
    font-family: "HelveticaNeueLight", "Open Sans", "ProximaNova", Arial, Tahoma, Century Gothic,
        Microsoft New Tai Lue, Arial;
    font-size: 20px;
    color: transparent;
    padding: 0px;
    margin: 0px;
    font-weight: normal;
    margin-bottom: 20px;
    line-height: 28px;
    text-align: center;
    width: 100%;
    display: none;
}

div.login_form h1 strong {
    font-weight: normal;
}

div.copyright {
    display: block;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 621px;
    padding: 30px;
    text-align: center;
    line-height: 17px;
    color: #e5e5e5;
    font-family: "HelveticaNeueLight", arial, "ProximaNova", Arial, Tahoma, Century Gothic,
        Microsoft New Tai Lue, Arial;
    font-size: 10px;
    z-index: 3;

    display: none;
}

div.copyright a {
    color: #e5e5e5;
}

a.forgot {
    display: inline;
    float: right;
    padding-top: 0px;
    text-decoration: none;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
}

a.forgot:hover {
    text-decoration: none;
}

div.login_form a.login_logo {
    background-image: url(https://manager.mailcampaigns.nl/images/logos/MailCampaigns-logo-white.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: left middle;
    background-color: transparent;
    display: block;
    position: fixed;
    top: 40px;
    left: 160px;
    margin-left: 0px;
    width: 230px;
    height: 70px;
    cursor: pointer;
    z-index: 38;

    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -kthtml-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

div.profile_picture.login {
    display: table;
    left: -40px;
    top: 125px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    width: 80px;
    height: 80px;

    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);

    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -kthtml-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

div.info {
    margin-top: 20px;
    text-align: left;
    font-family: "HelveticaNeueLight", Roboto, HelveticaNeueLight, "Open Sans", arial, "ProximaNova", Arial, Tahoma,
        Century Gothic, Microsoft New Tai Lue, Arial;
    font-size: 11px;
    margin-left: -90px;
    line-height: 12px;
    margin-bottom: -21px;
}

@media only screen and (max-width: 640px) {
    html,
    body {
        overflow: hidden;
    }

    #loggedin {
        overflow: auto;
    }

    div.copyright {
        display: none;
    }

    div.login_form {
        width: auto !important;
        right: 0px !important;
    }

    #mc_login_form {
        left: 50%;
        margin-left: -160px;
        width: 320px;
        margin-top: -40px;
    }

    div.login_form form input.input_submit {
        width: 100%;
    }

    div.info {
        margin-left: 0px;
    }

    div.login_form a.login_logo {
        top: 20px;
        left: 50%;
        margin-left: -100px;
        width: 200px;
        height: 70px;
        cursor: pointer;
        z-index: 38;
    }

    div.profile_picture.login {
        width: 110px;
        height: 110px;
        -webkit-border-radius: 80px;
        -moz-border-radius: 80px;
        border-radius: 80px;
        border: 0px solid #ffffff !important;
        background-color: #f1f1f1;
        position: relative;
        top: 50%;
        margin-top: -155px !important;
        margin-left: -40px !important;
        margin-right: 0px !important;
        margin-bottom: 25px !important;
        left: 50%;
    }
}

/* ===== 2FA ENHANCED STYLING ===== */

/* 2FA Container */
.two-fa-container {
    margin: 20px 0;
    padding: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.two-fa-container:not([style*="display: none"]) {
    opacity: 1;
    transform: translateY(0);
}

/* 2FA Label */
.two-fa-label {
    display: block;
    font-family: "HelveticaNeueLight", Roboto, "Open Sans", arial, "ProximaNova", Arial, Tahoma, Century Gothic, Microsoft New Tai Lue, Arial;
    font-size: 14px;
    font-weight: 500;
    color: #348ece;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: left;
}

/* 2FA Input Wrapper */
.two-fa-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.two-fa-input-wrapper::before {
    content: "🔒";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #348ece;
    z-index: 2;
    opacity: 0.8;
}

/* 2FA Input Field */
div.login_form form input#input_2fa_key {
    width: 100%;
    height: 55px;
    padding: 0 20px 0 50px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-family: "HelveticaNeueLight", Roboto, "Open Sans", arial, monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
    color: #333;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: 0 2px 8px rgba(52, 142, 206, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

div.login_form form input#input_2fa_key:focus {
    border-color: #348ece;
    box-shadow: 0 0 0 3px rgba(52, 142, 206, 0.1), 0 4px 20px rgba(52, 142, 206, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    transform: translateY(-1px);
}

div.login_form form input#input_2fa_key:hover {
    border-color: #5ba0d0;
    box-shadow: 0 4px 15px rgba(52, 142, 206, 0.12);
}

div.login_form form input#input_2fa_key::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 4px;
    opacity: 0.6;
}

/* Complete state styling */
div.login_form form input#input_2fa_key.complete {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1), 0 4px 15px rgba(40, 167, 69, 0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

div.login_form form input#input_2fa_key.complete::placeholder {
    color: #28a745;
    opacity: 0.8;
}

/* Add subtle animation */
.two-fa-input-wrapper {
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR Code Container Styles */
.qr-code-container {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qr-code-container img {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.qr-code-container img:hover {
    transform: scale(1.05);
}

.qr-code-container p {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.qr-code-container a {
    color: #348ece;
    text-decoration: none;
    font-weight: 500;
}

.qr-code-container a:hover {
    text-decoration: underline;
}

/* Mobile Responsive 2FA */
@media only screen and (max-width: 640px) {
    div.login_form form input#input_2fa_key {
        font-size: 16px;
        height: 50px;
        letter-spacing: 6px;
        padding: 0 15px 0 45px;
    }
    
    .two-fa-input-wrapper::before {
        left: 12px;
        font-size: 14px;
    }
    
    .two-fa-label {
        font-size: 13px;
    }
    
    .qr-code-container {
        padding: 15px;
    }
    
    .qr-code-container img {
        width: 180px !important;
        height: 180px !important;
    }
}
