/*
 *
 *  This document is the CONFIDENTIAL PROPERTY of Corero Network Security, Inc.
 *  Copyright (C) 2016-2026 by Corero Network Security, Inc. All rights reserved.
 *  Notice of copyright on this document does not constitute publication.
 *
 */

@font-face {
    font-family: AvenirLT;
    src: url("../fonts/avenirLtStd55Roman.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

:root {
    &.default-theme {
        --logo-line-color: #C2C5C7;
        --logo-img: url("../imgs/Corero-Logo-Color.png");
        --subtitle-text-color: #343D45;
        --text-color: #71777D;
        --container-background-color: #FFFFFF;
        --border-color: #999EA2;
        --button-color: #001738;
        --button-text-color: #FFFFFF;
        --button-hover-color: hsl(from var(--button-color) h s calc(l - 20));
        --error-color: #E6144C;
        --scrollbar-colors: #8B8B8B #FFFFFF;
        --sso-link-color: #2B33D7;
        --copyright-info-text: #A5B4C4;
        
        color-scheme: only light;
    }

    &.dark-theme {
        --logo-line-color: #71777D;
        --logo-img: url("../imgs/corero-logo-cropped.png");
        --subtitle-text-color: #999EA2;
        --text-color: #C2C5C7;
        --container-background-color: #1E2328;
        --border-color: #71777D;
        --button-color: #6B70E3;
        --button-text-color: #FFFFFF;
        --button-hover-color: hsl(from var(--button-color) h s calc(l - 20));
        --error-color: #F44661;
        --scrollbar-colors: #9F9F9F #2C333B;
        --sso-link-color: #6B70E3;
        --copyright-info-text: #A5B4C4;
        
        color-scheme: only dark;
    }
}

body {
    margin: 0;
}

#vertical-line {
    border-left: 2px solid var(--logo-line-color);
    height: 100%;
}

#subtitle {
    text-align: justify;
    font-family: AvenirLT, sans-serif;
    font-size: 20px;
    color: var(--subtitle-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.background-image {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1000;
    /* Linear gradient is used to shade the background images */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../imgs/login_background.png");
    background-position: center top;
    background-size: cover;
}

.main-contents {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: max-content;
    margin: 0 auto;
    height: 100vh;
}

.logo-container {
    height: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;

    .logo-img {
        background-image: var(--logo-img);
        width: 100%;
        height: 100%;

        background-size: contain;
        background-repeat: no-repeat;
        background-position-y: center;
    }
}

.login-container {
    margin-top: 30px;
    margin-bottom: auto;
}

.logout-container {
    margin-top: 193px;
}

.information-container {
    margin-top: 20px;
    font-family: AvenirLT, sans-serif;
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: center;
    color: var(--text-color);
}

.form-container {
    box-sizing: border-box;
    width: 407px;
    margin: 60px auto 0;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--container-background-color);
    box-shadow: 0 1px 16px 0 rgba(79, 89, 99, 0.1);
}

.input {
    box-sizing: border-box;
    width: 265px;
    height: 30px;
    display: block;
    margin: 20px auto 0;
    padding: 0 10px;

    border-radius: 3px;
    background-color: var(--container-background-color);
    border: solid 1px var(--border-color);

    opacity: 0.7;
    font-family: AvenirLT, sans-serif;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: var(--text-color);

    vertical-align: middle;

    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

input:focus {
    border: solid 2px var(--border-color);
    box-shadow: 0 2px 6px 0 rgba(92, 117, 147, 0.3);
    -webkit-box-shadow: 0 2px 6px 0 rgba(92, 117, 147, 0.3);
}

input:focus-visible {
    outline-color: var(--text-color);
}

.has-errors {
    border-radius: 3px;
    border: solid 1px var(--error-color);
}

.errors-container {
    box-sizing: border-box;
    height: 20px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin: 0 51px;
}

.errors-container p {
    margin: 0;
    font-family: AvenirLT, sans-serif;
    font-size: 10px;
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    color: var(--error-color);
}
button:hover{
	background-color: var(--button-hover-color);
}
button {
    padding: 0;
    border: 0;
    transition: all 400ms;
    border-radius: 3.5px;
    background-color: var(--button-color);
    font-family: AvenirLT, sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: var(--button-text-color);

    overflow: visible;

    align-items: inherit;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.login-button{
    display: block;
    width: 265px;
    height: 30px;
    margin: 30px auto 18px;
    cursor: pointer;
}
.login-banner-container.hidden{
    visibility: hidden;
}
.login-banner-block {
    background: var(--container-background-color);
    border: 1px solid #666;
    border-radius: 5px;
    width: 800px;
    margin: 30px auto 0;
    overflow: auto;
    padding: 20px;
    max-height: 150px;
    scrollbar-color: var(--scrollbar-colors);
    scrollbar-width: thin;
}

.login-banner-block > p {
    margin: 0;
    font-family: AvenirLT, sans-serif;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    color: var(--text-color);
}

.log-back-container {
    margin: 60px auto;
}
.log-back:hover {
    background-color: var(--button-hover-color);
}
.log-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 30px;
    margin: 30px auto 18px;
    transition: all 400ms;
    padding: 0;
    border: 0;

    border-radius: 2px;
    background-color: var(--button-color);
    box-shadow: 0 1px 2px 0 rgba(79, 89, 99, 0.3);
    font-family: AvenirLT, sans-serif;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: var(--button-text-color);
    text-decoration: none;

    overflow: visible;
}

.copyright-error-page {
    margin-top: 460px;
}

.log-sso-info {
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-top: 30px;
    margin-bottom: 30px;
    font-family: AvenirLT, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.log-sso-info-alert  {
    color: var(--error-color);
    text-decoration: none;
}

.log-sso-info > a {
    color: var(--sso-link-color);
    text-decoration: none;
}
.log-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 310px;
    height: 30px;
    margin: 30px auto 18px;
    transition: all 400ms;
    padding: 0;
    border: 0;

    background-color: transparent; /* make the button transparent */
    background-repeat: no-repeat;  /* make the background image appear only once */
    background-position: 0px 0px;  /* equivalent to 'top left' */
    font-family: AvenirLT, sans-serif;
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: var(--text-color);


    overflow: visible;
}

.lined-text::before,
.lined-text::after {
    content: "";
    border-bottom: 1px solid ;
    margin-top: auto;
    margin-bottom: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.lined-text::before {
    left: 0;
}

.lined-text::after {
    right: 0;
}

.copyright-information {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    margin: 0;

    font-family: AvenirLT, sans-serif;
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: normal;
    text-align: center;
    color: var(--copyright-info-text);
}
.hide {
    display: none;
}


