body {
    margin: 0;
    height: 90vh;
    display: flex;
    flex-flow: column;
    background-color: #f5f4f2;
    font-family: Roboto, serif;
}

.bold {
    font-weight: bold;
}

.kc-input {
    width: 336px;
    height: 48px;
    margin: auto;
    padding: 0;
    border-width: 0 0 1px;
    border-color: #C6C6C6;
    text-indent: 12px;
    font-size: 16px;
}

.kc-input:focus {
    outline: none;
    border-color: #4A4A4A;
}

.kc-button {
    width: 336px;
    height: 56px;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 2px;
    font-family: Roboto, serif;
    font-weight: bold;
    text-decoration: none;
}

.kc-button:hover {
    cursor: pointer
}

/*
    Class for putting icons next to texts in a block.
    It uses a 3-element flex row to arrange the items accordingly: <img> <span> <div>
    The empty div is used for calibration.
    Rules:
        kc-compound-element-img.padding-left = kc-compound-element-calib.padding-right
        kc-compound-element-img.width = kc-compound-element-calib.width
        kc-compound-element-img.height = kc-compound-element-calib.height
*/
.kc-compound-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.kc-compound-element-img {
    width: 24px;
    height: 24px;
    padding-left: 12px;
}

.kc-compound-element-calib {
    width: 24px;
    height: 24px;
    padding-right: 12px;
}

.kc-compound-element-label {
    width: 65%;
    text-align: center;
}

/* Uses the technique from the `kc-compound-element` for arranging the header properly */
.kc-login-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background-color: #cc071e;
    padding: 1em;
}

.kc-login-header-img {
    width: 85px;
    height: 27px;
}

.kc-login-header-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kc-login-header-text {
    color: white;
    font-size: 24px;
    font-family: Roboto, serif;
    margin: 0 5px 0 5px;
}

.kc-login-body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.kc-login-section {
    height: 100%;
    width: 440px;
    display: flex;
    flex-direction: column;
    margin: auto;
    font-size: 16px;
}

.kc-form-panel {
    height: 385px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.25);
    background: white;
    margin: 32px auto;
    padding: 20px 0;
}

.kc-form-update-password {
    height: 600px;
}

.kc-form-element {
    margin: auto;
}

.kc-form-info {
    width: 80%;
    color: #4A4A4A;
    text-align: left;
}

.kc-form-header {
    font-size: 20px;
    font-weight: Bold;
    text-align: center;
}

.kc-form-forgot-password {
    color: #4A4A4A;
    font-size: 16px;
    font-weight: 600;
}

.kc-form-submit-button {
    color: white;
    background-color: #6fbd14;
    font-size: 16px;
}

.kc-form-submit-button:hover {
    background-color: #5FAD09;
}

.kc-social-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-top: 16px;
}

.kc-social-login-element {
    margin-bottom: 16px;
}

.kc-social-login-hint {
    color: #4A4A4A;
    font-size: 18px;
    text-align: center;
}

.kc-social-login-button {
    color: #4a4a4a;
    background-color: white;
    font-size: 16px;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.24);
}

.kc-social-login-button:hover {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.24);
}

.kc-social-login-button:focus {
    box-shadow: none;
    border: solid 1px #c6c6c6;
    background-color: #fbfbfb;
}

.kc-form-feedback {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid #c6c6c6;
    margin: 18px auto -18px auto;
    padding: 10px 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-size: 15px;
    text-align: left;
}

.kc-feedback-success {
    border: 1px solid #006500;
    background-color: #EEF7E5;
    color: #006500;
}

.kc-feedback-error {
    border: 1px solid #CC071E;
    background-color: #FFEAED;
    color: #CC071E;
}

.kc-feedback-info {
    border: 1px solid #1873BA;
    background: #E1F4FE;
    color: #1873BA
}

#kc-error-message {
    display: flex;
    flex-direction: column;
    margin: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.25);
    padding: 40px;
}

.instruction {
    display: flex;
    flex-direction: column;
    margin: auto;
    background: white;
    border-radius: 8px;
    padding: 40px;
}

@media screen and (max-width: 980px) {
    .kc-input {
        height: 150px;
        width: 800px;
        font-size: 45px;
    }

    .kc-button {
        height: 150px;
        width: 800px;
        font-size: 45px;
    }

    .kc-compound-element-img {
        width: 65px;
        height: 65px;
        padding-left: 40px;
    }

    .kc-compound-element-calib {
        width: 65px;
        height: 65px;
        padding-right: 40px;
    }

    .kc-login-section {
        width: 900px;
    }

    .kc-login-header {
        padding: 2em;
    }

    .kc-login-header-img {
        width: 120px;
        height: 38px;
    }

    .kc-login-header-text {
        font-size: 40px;
    }

    .kc-form-panel {
        height: 900px;
        margin: 40px auto;
    }

    .kc-form-header {
        font-size: 60px;
    }

    .kc-form-update-password {
        height: 600px;
    }

    .kc-social-panel {
        margin-top: auto;
    }

    .kc-form-forgot-password {
        display: none;
    }

    .social-google {
        display: none;
    }

    .kc-social-login-hint {
        font-size: 50px;
    }

    .kc-form-feedback {
        font-size: 35px;
        padding: 20px 0;
        margin: 32px auto -8px auto; /* -8px to equalise the distance to form-panel */
    }
}
