﻿:root {
    --primary-color: #ee6a37;
}

::selection {
    color: white;
    background: var(--primary-color);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: "Arial",sans-serif;
    color: #fff;
    background: url(../images/octopus/page-background.svg) black no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    align-items: center;
    justify-content: center
}

body {
    display: flex;
    min-width: 440px
}

h1, p{
    cursor:default;
}

h1 {
    font-size: 2em;
    font-weight: 100;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
    color: #fff;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 18 18"><path d="M4 6l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px
}

    select:focus {
        outline: none;
        border-color: #555
    }

.container {
    display: flex;
    width: 85%;
    height: 85%;
    box-shadow: 0 4px 8px #00000080;
    border-radius: 8px;
    overflow: hidden;
    margin: auto
}

.brand-section {
    background-color: var(--primary-color);
    flex: 1;
    display: flex;
    position: relative;
    filter: brightness(1.15);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    background-size: cover;
    width: 100%
}

    .brand-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml;utf8,<svg width="550" height="383" viewBox="0 0 550 383" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="-4.23633" width="553.588" height="382.939" fill="url(%23paint0_linear_2290_77)"/><defs><linearGradient id="paint0_linear_2290_77" x1="272.558" y1="0" x2="272.558" y2="354.187" gradientUnits="userSpaceOnUse"><stop stop-color="%23EE6A37"/><stop offset="1" stop-color="%23EE6A37" stop-opacity="0"/></linearGradient></defs></svg>');
        background-size: cover;
        opacity: 0.5;
        z-index: 1
    }

#lottie-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0
}

.brand-logo {
    position: relative;
    z-index: 2
}

.login-section {
    flex: 1;
    background-color: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.login-content {
    padding: 0 20px;
    width: 100%;
    max-width: 400px
}

.login-form {
    display: flex;
    flex-direction: column
}

    .login-form h1 {
        display: block;
        margin-bottom: 0.5rem
    }

    .login-form input, .login-form select, .login-form button {
        padding: 12px;
        margin-bottom: 15px;
        border: 1px solid #333;
        background-color: #222;
        color: #fff;
        border-radius: 4px;
        font-size: 16px
    }

        .login-form input:focus, .login-form select:focus {
            border-color: white;
            outline: none
        }

    .login-form button {
        font-weight: 700;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        background-color: var(--primary-color);
        border: 1px solid #333;
        border-radius: 4px;
        cursor: pointer;
        margin-bottom: 0
    }

.login-with-password:hover {
    filter: brightness(120%)
}

.input-validation-error {
    border: 1px solid var(--primary-color) !important;
}

.password-container {
    position: relative;
    display: grid;
}

.toggle-password {
    position: absolute !important;
    right: 10px;
    top: 40% !important;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 1em;
    cursor: pointer;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid darkorange; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: fixed;
    left: 48%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* High z-index to make sure it's on top */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-form .login-with-microsoft {
    background-color: #fff;
    color: #000;
    margin-top: 10px;
    display: flex;
    transition: background-color 0.3s,transform 0.3s
}

.microsoft-logo-container {
    margin-right: 8px
}

.microsoft-square {
    fill: #000;
    transition: fill 0.3s
}

.login-with-microsoft:hover .microsoft-logo .microsoft-square:nth-child(1) {
    fill: #f25022
}

.login-with-microsoft:hover .microsoft-square:nth-child(2) {
    fill: #7fba00
}

.login-with-microsoft:hover .microsoft-square:nth-child(3) {
    fill: #00a4ef
}

.login-with-microsoft:hover .microsoft-square:nth-child(4) {
    fill: #ffb900
}

.login-with-microsoft:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px #0000004d
}

.login-with-microsoft i {
    margin-right: 8px
}

.separator {
    border: 0;
    height: 1px;
    background: #aaa;
    margin: 1rem auto
}

.icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 1rem
}

    .icon-row img {
        max-height: 35px;
        margin-right: 10px;
        filter: brightness(0.7);
    }

        .icon-row img:last-child {
            margin-right: 0
        }

.footer {
    color: #aaa;
    margin-top: 20px;
    font-size: 0.7rem;
    text-align: center
}

    .footer a {
        color: #fff
    }

.version {
    font-weight: bold;
    font-size:x-small;
    color: var(--primary-color);
}

#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999; /* Ensure it's above other elements */
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    opacity: 0.8;
    font-size: 1em;
    animation-name: fall;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    to {
        transform: translateY(90vh);
    }
}
@media (max-width: 530px) {
    .password-container, .login-form input, .login-form select, .toggle-password {
        box-sizing: border-box
    }

        .password-container input[type="password"], .login-form input, .login-form select, .login-form button {
            width: calc(100% - 20px);
            padding: 8px
        }

    .toggle-password {
        position: absolute;
        right: 0;
        padding: 8px;
        margin-right: 5px
    }

    .login-content, .login-form {
        padding: 10px
    }
}

@media screen and (max-height: 775px) {
    .login-content {
        padding: 10px
    }

        .login-content h1 {
            font-size: 1.2rem;
            margin-bottom: 10px
        }

    .login-form input, .login-form select, .login-form button {
        padding: 8px;
        margin-bottom: 10px
    }

    .icon-row {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px
    }

        .icon-row img {
            margin-bottom: 10px
        }

    .footer {
        font-size: 0.7rem
    }

    .container {
        height: auto;
        padding: 10px 0
    }
}

@media (max-width: 780px) {
    .container {
        flex-direction: column;
        width: 95%;
        height: auto;
        width: 100%
    }

    .brand-section, .login-section {
        width: 100%
    }

        .login-section h1 {
            text-align: center
        }

    form {
        width: 100%
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%
    }

    .brand-logo {
        width: 120px;
        padding-bottom: 20px
    }

    .login-content {
        padding: 20px
    }

    .login-form input, .login-form select, .login-form button {
        padding: 10px
    }

    .footer {
        font-size: 0.7rem
    }
}

@media screen and (min-height: 1200px) {
    .brand-logo {
        padding-top: 15%
    }
}
