﻿html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.login-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ===========================
   LEVA STRANA
   ===========================*/

.login-left {
    flex: 0 0 63%;
    position: relative;
    background: #233f82;
    overflow: hidden;
}

.login-logo {
    position: absolute;
    left: 50px;
    top: 45px;
    z-index: 10;
}

    .login-logo img {
        width: 230px;
        height: auto;
    }

/* donja ilustracija */

.login-left::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 310px;
    background-image: url("/images/login/bg-pattern-small-tr.png");
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 310px;
    /*opacity: .18;*/
}

/* ===========================
   DESNA STRANA
   ===========================*/

.login-right {
    flex: 1;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===========================
   FORMA
   ===========================*/

.login-form {
    width: 420px;
}

    .login-form h1 {
        margin: 0 0 40px 0;
        font-size: 24px;
        font-weight: 400;
        color: #333;
        text-align: center;
    }

.login-row {
    margin-bottom: 16px;
}

    .login-row input {
        width: 100%;
        height: 50px;
        padding: 0 18px;
        border: 1px solid #dddddd;
        border-radius: 8px;
        outline: none;
        font-size: 16px;
        box-sizing: border-box;
        transition: border-color .15s;
    }

        .login-row input:focus {
            border-color: #1f4d9a;
        }

        .login-row input::placeholder {
            color: #a8a8a8;
        }

/* ===========================
   BUTTON
   ===========================*/

.login-button {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #233f82;
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .15s;
}

    .login-button:hover:not(:disabled) {
        background: #1b3269;
    }

    .login-button:disabled {
        opacity: .7;
        cursor: default;
    }

/* ===========================
   ERROR
   ===========================*/

.login-error {
    color: #c62828;
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 8px;
    text-align: center;
}

/* traka sa pozadinskim patternom na dnu stranice — samo na mobilnom, vidi @media ispod */
.login-bottom-pattern {
    display: none;
}

/* ===========================
   RESPONSIVE
   ===========================*/

@media (max-width:1100px) {

    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        flex: 1 0 auto;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        box-sizing: border-box;
    }

    /* logo je apsolutno pozicioniran (u odnosu na viewport) na desktopu, zbog čega se na uskom
       ekranu preklapao sa formom — na mobilnom se vraća u normalan tok, na vrhu. Zadržava svoju
       teget pozadinu (isti obrazac kao .login-left) jer je logo svetao/beo, dizajniran za tamnu
       podlogu — na beloj pozadini .login-right postaje nevidljiv. */
    .login-logo {
        position: static;
        width: 100%;
        text-align: center;
        padding: 30px 20px;
        margin-bottom: 40px;
        background: #233f82;
        box-sizing: border-box;
    }

        .login-logo img {
            width: 160px;
        }

    .login-form {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .login-bottom-pattern {
        display: block;
        flex: 0 0 200px;
        width: 100%;
        margin-top: 40px;
        background-color: #233f82;
        background-image: url("/images/login/bg-pattern-small-tr.png");
        background-repeat: repeat-x;
        background-position: bottom center;
        background-size: auto 200px;
    }
}
