/**
 * OpenDXP
 *
 * This source file is licensed under the GNU General Public License version 3 (GPLv3).
 *
 * Full copyright and license information is available in
 * LICENSE.md which is distributed with this source code.
 *
 * @copyright  Copyright (c) Pimcore GmbH (https://pimcore.com)
 * @copyright  Modification Copyright (c) OpenDXP (https://www.opendxp.ch)
 * @license    https://www.gnu.org/licenses/gpl-3.0.html  GNU General Public License version 3 (GPLv3)
 */
@import 'variables.css';

@font-face {
    font-family: 'Open Sans';
    src: url('/bundles/opendxpadmin/extjs/font/fonts/OpenSans-Regular.ttf');
    font-weight: 300;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--color-white);
    background: var(--color-neutral-a);
}

a, a:hover, a:visited, a:active {
    color: var(--color-white);
    text-decoration: none;
}

#contentBackground {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 480px;
    height: 100%;
    background: var(--color-neutral-a);
}

#content {
    z-index: 150;
    position: absolute;
    top: 0;
    left: 0;
    width: 480px;
    background: var(--color-neutral-a);
    padding: 280px 90px 20px 90px;
}

#content input {
    background: var(--color-neutral-d);
    color: var(--color-white);
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border:0;
    outline: none;
    line-height: 20px;
}

#content button {
    background: var(--color-primary-a);
    color: var(--color-primary-b);
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    text-transform: uppercase;
    border-radius: 8px;
    border:0;
    font-weight: bold;
    cursor: pointer;
}

#content .text {
    margin: 10px 0;
}

#content .text.error {
    color: var(--color-red-a);
    padding: 10px;
    background: var(--color-white);
    border-radius: 2px;
}

#content .text.success {
    color: var(--color-green-a);
    padding: 10px;
    background: var(--color-white);
    border-radius: 2px;
}

#content .browserinfo img {
    width: 60px;
    margin-right: 12px;
}

#background {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 480px);
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#logo {
    position: absolute;
    top: 140px;
    left: 90px;
    width: 300px;
    z-index: 200;
    text-align: center;
}

#logo img {
    max-width: 300px;
    max-height: 120px;
}

#footer {
    z-index: 200;
    position: absolute;
    bottom: 20px;
    left: 90px;
    line-height: 25px;
    height: 25px;
    overflow: hidden;
}


#news {
    z-index: 100;
    position: absolute;
    left: 0;
    bottom: 70px;
    width: 480px;
    padding: 30px 90px 0 90px;
    border-top: 1px solid var(--color-primary-b);
}

@media screen and (max-height: 800px) {
    #news {
        display: none;
    }
}

#news h2 {
    text-transform: uppercase;
    font-size: 14px;
}

#news hr {
    width: 40px;
    height: 1px;
    background: var(--color-primary-b);
    margin: 0;
    border: 0;
}

#news p {
    padding: 10px 0 10px 0;
}

#github {
    position: absolute;
    bottom: 15px;
    z-index: 2000;
    left: 390px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px var(--color-neutral-d) inset !important;
}

input:-webkit-autofill {
    -webkit-text-fill-color: var(--color-white) !important;
}

.inverted {
    color: var(--color-neutral-a);
    background: var(--color-white);
}

.inverted a, .inverted a:hover, .inverted a:visited, .inverted a:active {
    color: var(--color-primary-b);
}

.inverted #contentBackground {
    background: var(--color-white);
}

.inverted #content {
    background: var(--color-white);
}

.inverted #content input {
    background: var(--color-neutral-h);
    color: var(--color-neutral-a);
}

.inverted #footer a {
    color: var(--color-neutral-a);
}

.inverted #news {
    border-top: 1px solid var(--color-neutral-g);
}

.inverted #news h2 {
    color: var(--color-neutral-a);
}



.inverted input:-webkit-autofill,
.inverted input:-webkit-autofill:hover,
.inverted input:-webkit-autofill:focus,
.inverted input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px var(--color-neutral-h) inset !important;
}

.inverted input:-webkit-autofill {
    -webkit-text-fill-color: var(--color-neutral-a) !important;
}
