/* ===================================================================
 * Unique Properties - sign-in page
 * Purpose: Standalone stylesheet for uniqueproperties.topolskaconcept.com
 *
 * The page is served from its own subdomain, so it cannot use the CSS of
 * the main website. Typography and colours follow css/style.css there.
 * =================================================================== */

/* ==============================
   Fonts (self-hosted copies, latin + latin-ext)
   ============================== */

@font-face {
    font-family: 'Dosis';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(../fonts/dosis-normal-latin-2.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Dosis';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(../fonts/dosis-normal-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(../fonts/open-sans-normal-latin-2.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(../fonts/open-sans-normal-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==============================
   Base
   ============================== */

*,
*::before,
*::after{
    box-sizing: border-box;
}
html{
    height: 100%;
    -webkit-text-size-adjust: 100%;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    color: #111;
    background: #6f8a5a;
    font-family: "Open Sans", arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background photo. A fixed layer instead of background-attachment: fixed,
   which mobile Safari does not support. */
body::before{
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -2;
    background: url(../img/login-bg.jpg) center / cover no-repeat;
}
/* Darkens the top and bottom edge so the white bar texts stay readable */
body::after{
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0,0,0, .45) 0, rgba(0,0,0, .1) 22%, rgba(0,0,0, .1) 72%, rgba(0,0,0, .55) 100%);
}

a{
    color: #111;
    text-decoration: underline;
}
a:hover{
    color: #555;
}
.font-alt{
    font-family: Dosis, arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==============================
   Top bar
   ============================== */

.login-bar{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 40px;
    color: #fff;
    font-size: 11px;
}
.login-bar a{
    color: #fff;
    text-decoration: none;
}
.login-back{
    opacity: .85;
    transition: opacity 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}
.login-back:hover{
    color: #fff;
    opacity: 1;
}
.lang-switcher{
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.lang-flag{
    opacity: .6;
    transition: opacity 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}
.lang-flag:hover{
    color: #fff;
    opacity: 1;
}
.lang-flag.active{
    opacity: 1;
    border-bottom: 1px solid #fff;
    cursor: default;
}
.login-bar a:focus-visible,
.login-footer a:focus-visible{
    outline: 2px solid rgba(255,255,255, .8);
    outline-offset: 3px;
}


/* ==============================
   Sign-in card
   ============================== */

.login-main{
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 40px;
}
.login-card{
    width: 100%;
    max-width: 420px;
    padding: 48px 44px 40px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0, .28);
    text-align: center;
}
.login-logo{
    display: block;
    width: 92px;
    height: auto;
    margin: 0 auto 26px;
}
.login-title{
    margin: 0;
    font-family: Dosis, arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    /* Letter-spacing adds a gap after the last letter - pull the text back to centre */
    margin-right: -0.4em;
}
.login-lead{
    margin: 6px 0 30px;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.3em;
    margin-right: -0.3em;
}

.login-field{
    margin-bottom: 16px;
    text-align: left;
}
.login-field label{
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 11px;
}
.login-field input{
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0,0,0, .15);
    border-radius: 0;
    font-family: inherit;
    /* 16px keeps mobile Safari from zooming into the field */
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}
.login-field input:hover{
    border-color: rgba(0,0,0, .3);
}
.login-field input:focus{
    border-color: rgba(0,0,0, .7);
    box-shadow: 0 0 3px rgba(0,0,0, .3);
    outline: none;
}
.login-form.has-error .login-field input{
    border-color: #c62828;
}

.login-error{
    margin: 0 0 16px;
    color: #c62828;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.login-error[hidden]{
    display: none;
}

.login-submit{
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 14px 20px;
    color: #fff;
    background: #111;
    border: 1px solid #111;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.27s cubic-bezier(0.300, 0.100, 0.580, 1.000);
}
.login-submit:hover,
.login-submit:focus-visible{
    color: #111;
    background: #fff;
    outline: none;
}
.login-submit:disabled{
    color: #fff;
    background: #777;
    border-color: #777;
    cursor: default;
}

/* Invitation note */
.login-note{
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #e5e5e5;
    color: #555;
    font-size: 13px;
    line-height: 1.7;
}
.login-note-title{
    margin: 0 0 10px;
    color: #111;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-right: -0.3em;
}
.login-note p{
    margin: 0 0 12px;
}
.login-note p:last-child{
    margin-bottom: 0;
}
.login-contact a{
    white-space: nowrap;
}


/* ==============================
   Footer
   ============================== */

.login-footer{
    flex: 0 0 auto;
    padding: 0 20px 26px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-align: center;
}
.login-footer a{
    display: inline-block;
    margin: 4px 10px;
    color: #fff;
    text-decoration: none;
    opacity: .85;
    transition: opacity 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}
.login-footer a:hover{
    color: #fff;
    opacity: 1;
}


/* ==============================
   Responsive
   ============================== */

@media only screen and (max-width: 480px){
    .login-bar{
        padding: 20px 20px;
    }
    .login-main{
        padding: 10px 16px 30px;
    }
    .login-card{
        padding: 36px 24px 32px;
    }
    .login-title{
        font-size: 17px;
        letter-spacing: 0.3em;
        margin-right: -0.3em;
    }
    .login-footer{
        letter-spacing: 0.2em;
    }
}

@media (prefers-reduced-motion: reduce){
    *{
        transition: none !important;
    }
}
