/* red-hat-display-regular - latin-ext_latin */
@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/red-hat-display-v4-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
            url('/fonts/red-hat-display-v4-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
            url('/fonts/red-hat-display-v4-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
            url('/fonts/red-hat-display-v4-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
            url('/fonts/red-hat-display-v4-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
            url('/fonts/red-hat-display-v4-latin-ext_latin-regular.svg#RedHatDisplay') format('svg'); /* Legacy iOS */
}
/* red-hat-display-700 - latin-ext_latin */
@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/red-hat-display-v4-latin-ext_latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
            url('/fonts/red-hat-display-v4-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
            url('/fonts/red-hat-display-v4-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
            url('/fonts/red-hat-display-v4-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */
            url('/fonts/red-hat-display-v4-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
            url('/fonts/red-hat-display-v4-latin-ext_latin-700.svg#RedHatDisplay') format('svg'); /* Legacy iOS */
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    box-sizing: border-box;   
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

input, textarea {
    border-radius: 0;
	outline: none;
}

html,
body {
  height: 100%;
}

body {
	font-family: 'Red Hat Display', sans-serif;
}

#su-login {
    display: flex;
    height: 100%;
}

#su-login > section {
    display: flex;
    flex-basis: 50%;
    flex-shrink: 0;
    flex-grow: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
}

#login {
    justify-content: space-between;
}

#form {
    width: 100%;
    max-width: 520px;
    margin: auto 0;
    padding-top: 40px;
}

#blog {
    background-color: #fafafa;
}

#about {
    margin-bottom: 30px;
}

#logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

#label {
    font-weight: bold;
    font-size: 32px;
    margin-left: 14px;
}

.input-row {
    position: relative;
    margin-bottom: 14px;
}

.input-icon {
    position: absolute;
    top: 0;
    left: 0;
}

.input-row input {
    border: 0;
    border-bottom: 1px solid #dedede;
    width: 100%;
    height: 58px;
    padding-left: 46px;
    font-size: 18px;
}

.input-row:first-child .input-icon {
    top: 20px;
    left: 10px;
}

.input-row:nth-child(2) .input-icon {
    top: 17px;
    left: 11px;
}

.input-row input:focus {
    border-color: #21ca00;
}

.button-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    height: 58px;
    line-height: 58px;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    color: white;
    border-radius: 50px;
    background: #24dc00;
    background: -moz-linear-gradient(top,  #24dc00 0%, #21ca00 100%);
    background: -webkit-linear-gradient(top,  #24dc00 0%,#21ca00 100%);
    background: linear-gradient(to bottom,  #24dc00 0%,#21ca00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#24dc00', endColorstr='#21ca00',GradientType=0 );
}

.button-primary:hover {
    background: #21CA00;
}

.input-row:nth-child(2) {
    margin-bottom: 32px;
}

#buttons {
    text-align: center;
}

.button-secondary {
    margin-top: 28px;
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 18px;
}

.button-secondary span {
    color: #aaa;
}

.button-secondary:hover,
.button-secondary:hover span {
    color: #21CA00;
}

#about {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

img {
    vertical-align: top;
}

#copyright {
    font-size: 14px;
    color: #999;
}

#kontornet img {
    opacity: .66;
}

a {
    color: #666;
    text-decoration: none;
}

a:hover {
    color: #222;
}

a.button-primary:hover {
    color: #fff;
}

#more-buttons {
    margin-top: 28px;
    display: flex;
}

#more-buttons a {
    flex-basis: 50%;
    background-color: #f5f5f5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 20px;
}

#more-buttons a:hover {
    color: #666;
    background-color: #f9f9f9;
}

#more-buttons a .icon {
    margin-right: 10px;
}

#more-buttons a:first-child {
    margin-right: 10px;
}

#more-buttons a:nth-child(2) {
    margin-left: 10px;
}

.icon svg {
    vertical-align: top;
}

#posts {
    max-width: 672px;
    margin: 0 auto;
}

#posts h2 {
    font-size: 32px;
}

#posts-list a {
    padding: 20px;
    border: 2px solid #EAEAEA;
    border-radius: 20px;
    display: flex;
    align-items: center;
    min-height: 86px;
    }

#posts-list a:hover {
    color: #666;
    background-color: rgba(0, 0, 0, .02);
}

#posts-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#posts-more a {
    height: 62px;
    display: inline-block;
    line-height: 62px;
    text-align: center;
    font-weight: bold;
    width: 100%;
    color: #222;
    font-size: 22px;
    background-color: #f1f1f1;
    border-radius: 20px;
    margin-top: 20px;
}

#posts-more a:hover {
    background-color: #f5f5f5;
}

#posts-more {
    margin-bottom: 28px;
}

#posts-list a:first-child {
    grid-column: 1 / span 2;
}

#posts-list a.post.new {
    border-color: #F44336;
    font-weight: bold;
    color: #222;
    font-size: 22px;
}

#posts-list a.post.new:hover {
    background-color: rgba(244, 67, 54, .03);
}

#posts-list a.post.new .flag {
    background-color: #F44336;
    color: white;
    font-size: 18px;
    text-transform: uppercase;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 10px;
    display: inline-block;
    width: 62px;
    padding: 0;
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 14px;
}

#posts-list a:first-child {
    font-weight: bold;
    color: #222;
    font-size: 20px;
}

@media (max-width: 1023px) {
    #su-login,
    #more-buttons {
        display: block;
    }

    #su-login > section {
        display: block;
        padding: 14px 14px;
    }

    #label {
        font-size: 28px;
    }

    #logo {
        justify-content: center;
    }

    #sign img {
        max-height: 42px;
    }

    #about {
        display: none;
    }

    #more-buttons a:first-child, 
    #more-buttons a:nth-child(2) {
        margin: 0;
    }
    
    #more-buttons a:nth-child(1) {
        margin-bottom: 10px;
    }

    #posts-list a {
        font-size: 14px;
        padding: 14px;
    }

    #posts-more a {
        font-size: 18px;
    }

    #posts h2 {
        font-size: 24px;
        text-align: center;
    }

    #form {
        margin: 0 auto;
    }
}