/* tiny reset css */

html, body, div, h2, p, u {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

:focus {
    outline: 0;
}

/* base page layout */

.login-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background: url('../images/login-background.svg') no-repeat center center fixed;
    background-size: cover;
}

.section {
    flex: 1;
}

.section.top {
    display: flex;
}

.section.page-content {
    flex: 0 0 auto;
}

/* styles for top section: logotype */

.logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 57px;
    height: 60px;
}

.logo-line {
    width: 2px;
    height: 72px;
}

.first-logo-text {
    color: #F4F7F9;
    text-align: center;
    font-family: Philosopher, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
}

.second-logo-text {
    color: #E7993D;
    text-align: start;
    font-family: Philosopher, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
}

/* styles for main content: login form (below separated styles for email, password and button) */

#loginForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    height: 33px;
    margin-bottom: 15px;
    font-family: Noto Sans JP, sans-serif;
    color: #F4F7F9;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* styles for inputs */

.input-description {
    padding-bottom: 6px;
    color: #F4F7F9;
    font-family: Noto Sans JP, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.login-input {
    width: 380px;
    height: 40px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
    background: #4D5156;
    padding: 0 16px;
    color: #fcfeff;
    font-family: Noto Sans JP, sans-serif;
}

.login-input::placeholder {
    color: #989797;
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.error {
    margin-top: 10px;
    margin-bottom: 11px;
    visibility: hidden;
    color: #FF4E41;
    font-family: Noto Sans, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.visible-error {
    visibility: visible;
}

/* additional styles for password */

.password-block {
    position: relative;
}

.icon-block {
    position: absolute;
    top: 38px;
    right: 10px;
    cursor: pointer;
}

.icon {
    width: 24px;
    filter: brightness(0) invert(1);
}

.icon:hover {
    filter: invert(85%) sepia(7%) saturate(7490%) hue-rotate(325deg) brightness(86%) contrast(86%);
}

/* styles for button */

.button {
    width: 262px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #AAA9A9;
    border-radius: 8px;
    background: transparent;
    margin: 26px auto 0 auto;
    font-size: 18px;
    color: #AAA9A9;
    line-height: 28px;
    letter-spacing: 1px;
    font-family: Noto Sans JP, sans-serif;
    cursor: pointer;
}

.active-button {
    border: 2px solid #F4F7F9;
    color: #F4F7F9;
}

.active-button:hover {
    border: 2px solid transparent;
    background-color: #CF8E43;
}

u {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    color: #ECECEC;
    font-family: Noto Sans JP, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration-line: underline;
}

/* styles for Loading overlay */

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gif-animation { width: 300px; }

/* styles for server is unreachable template */

#serverErrorContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.server-error-text {
    margin-bottom: 80px;
    color: #FF4E41;
    font-family: Noto Sans, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px
}

.server-error-img {
    width: 400px;
}

/* additional settings */

label {
    display: block;
}

.error-border {
    border: 2px solid #C6463D;
}

.network-error {
    visibility: hidden;
    margin-bottom: 15px;
    color: #FF4E41;
    font-family: Noto Sans JP, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

#openEye { display: none; }
