﻿/* //TODO rename this file as identity.css, as it is used by all Identity related forms: login, change password, verify code, etc. */

:root {
    /* Parameters */
    --color-dark-blue: #577BB1;
    --background-color: #FCFBFB;
}

body {
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

img {
    max-width: 100% !important;
    max-height: 100% !important;
}

fieldset {
    border: 1px solid #ddd;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
}


input[type="submit"] {
    padding: 1%;
    font-weight: bold;
    font-size: 1em;
}

/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;}

.validation-summary-errors 
{
    font-weight: bold;
    color: #ff0000;
    font-size: 0.9em;
    width: 400px;
}

    .validation-summary-errors ul 
    {
        margin: 0px;
    }

.validation-summary-valid 
{
    display: none;
}

#errorFieldLogin {
    display: block;
    width: 350px;
    height: 20px;
    margin-bottom: 1%;
    text-align: center;
}

/* Styles for editor and display helpers
----------------------------------------------------------*/


input:focus, textarea:focus {
    border: none;
}

.editor-block {
    padding-bottom: 16px;
}

.editor-field-validation {
    height: fit-content;
    width: fit-content;
    font-size: 0.9em;
    margin-top: 1%;
    margin-bottom: 3%;
    margin-inline: 2%;
}

.label-login {
    color: white;
}

.text-box {
    width: 30em;
}


    .text-box.multi-line {
        height: 6.5em;
    }

.tri-state {
    width: 6em;
}

#formConnectDiv {
    display: grid;
    place-items: center;
}

#labelErrorConnection {
    height: 20px
}

.middle-content {
    min-width: max-content;
}

.form-custom {
    max-width: 500px;
    padding: 1.5%;
    border: 1px solid var(--color-dark-blue);
    border-radius: 15px;
    background-color: white;
    margin-bottom: 1%;
}

.form-group {
    padding: 0%;
    height: 4em;
    width: 300px;
}

#forgetPasswordField {
    margin-block: 1em;
}

#forgetPasswordLabel {
    color: white;
    cursor: pointer;
}

    #forgetPasswordLabel:hover {
        color: white;
        text-decoration: underline;
    }


/* Login custom */

.logo {
    width: 250px;
    margin-inline: auto;
}

#imgLogo {
    width: 250px;
    height: 155px;
}

#nameLog {
    max-width: 100%;
    max-height: 100%;
}

.logoNameSection {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    margin-block: 2%;
}

#contact-section {
    padding: 6%;
}

#loginLogos {
    padding-top: 12%;
}

#loginConnection {
    padding-top: 5%;
}

#titleLogin {
    display: block;
    margin-block: 5%;
    margin-inline: inherit;
    width: fit-content;
    padding: 0.5em;
    color: white !important;
}

#loginForm {
    display: block;
    margin-right: auto;
    margin-left: auto;
    background-color: var(--color-dark-blue);
    color: white;
}

    #loginForm .field-validation-error,
    #loginForm .validation-summary-error,
    #loginForm #errorFieldLogin,
    #loginForm .validation-summary-error,
    #loginForm .text-danger {
        color: orange !important;
        font-size: 12px;
        font-weight: normal;
        width: 100%;
    }

    #loginForm.no-hover .field-validation-error,
    #loginForm.no-hover .validation-summary-error,
    #loginForm.no-hover #errorFieldLogin,
    #loginForm.no-hover .validation-summary-error,
    #loginForm.no-hover .text-danger {
        color: red !important;
        font-size: 12px;
        font-weight: normal;
        width: 100%;
    }

.buttonLogin {
    width: 180px;
    border: 1px solid #02365f;
    border-radius: 5px;
    text-decoration: none;
    transition: all 250ms linear;
    color: black;
    font-weight: bold;
    background-color: white;
}

.buttonLoginLogo {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(/resources/system/logomicrosoft.png);
}

#socialLoginForm {
    padding: 1%;
    height: min-content;
}

.loginExternalForm {
    display: block;
    margin-right: auto;
    margin-left: auto;
    width: 350px;
    height: fit-content;
    padding: 0%;
    box-shadow: 2px 2px 2px 2px var(--color-dark-blue);
    background-color: white;
}

.btnExternalLogin {
    background-color: transparent;
    border-color: transparent;
    display: flex;
    margin-right: auto;
    margin-left: auto;
    padding: 2%;
}

#logonDiv {
    max-width: 350px;
    margin-inline: auto;
}


/* //TODO adapt the remaining views using accountDivContainer to rather use identity-container*/

.accountDivContainer {
    position: relative;
    top: 56px;
}

.accountDiv {
    border: 1px solid #C0C0C0;
    box-shadow: 2px 2px #C0C0C0;
    border-radius: 4px;
}

.accountDivMinWidth {
    min-width: 480px;
}

.editor-label-container {
    width: 150px;
}

.editor-field-container {
    width: 300px;
}

.accountDivTitle {
    margin: 0px;
    padding: 3px;
    border-radius: 4px 4px 0px 0px;
    background-color: #577BB1;
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

.accountDivContent {
    margin: 5px;
    max-height: 100%
}

.accountSubmitBtn {
    padding: 1px 5px 1px 5px;
    font-size: 0.9em;
}

.accountBtn {
    padding: 1px 5px 1px 5px;
    font-size: 0.9em;
    border-width: 1px;
}

.accountDivContent > table {
    border-collapse: separate;
    border-spacing: 5px;
}

.validation-summary-errors > ul {
    padding-left: 15px;
}


/* Identity related forms; visually similar with the login form */

.identity-container {
}

.identity-form {
    margin-right: auto;
    margin-left: auto;
    background-color: #577BB1;
    color: white;
    border: 1px solid #577BB1;
    border-radius: 15px;
    max-width: 500px;
    padding: 1%;
    margin-top: 50px;
    margin-bottom: 1%;
}

.identity-form-2 {
    margin-right: auto;
    margin-left: auto;
    background-color: #577BB1;
    color: white;
    border: 1px solid #577BB1;
    border-radius: 15px;
    max-width: 600px;
    padding: 1%;
    margin-top: 50px;
    margin-bottom: 1%;
}

.identity-title {
    margin-block: 1%;
    margin-inline: inherit;
    width: fit-content;
    padding: 0.5em;
    color: white;
}

.identity-content {
    max-width: 350px;
    margin-inline: auto;
}

.identity-content-2 {
    max-width: 500px;
    margin-left: 50px;
    margin-right: 50px;
}

.identity-block {
    padding-bottom: 8px;
}

.identity-subtitle,
.identity-subtitle a {
    color: white;
    width: 100%;
    font-size: 12px;
    margin-bottom: 0px;
}

.identity-form .identity-subtitle.text-danger {
    color: orange;
}

.identity-field {
    font-size: 0.9em;
    /*border: 2px solid gray;*/
    border-radius: 12px;
    width: 100%;
}

.identity-label {
    color: white;
    width: 100%;
    font-weight: bold;
    font-size: 12px;
}

.identity-label-2 {
    color: white;
    width: 100%;
    font-weight: normal;
    font-size: 12px;
}

.identity-input {
    width: 100%;
    height: 40px;
    padding: 2%;
    border-radius: 10px;
    color: black;
    border-color: transparent;
    font-size: 1em;
}

.identity-select {
    width: 100%;
    height: 30px;
    padding: 1%;
    border-radius: 10px;
    color: black;
    border-color: transparent;
    font-size: 1em;
}

.identity-link-1 {
    color: white;
    width: 100%;
    font-weight: bold;
    font-size: 12px;
}

.identity-link-2 {
    color: white;
    width: 100%;
    font-size: 12px;
}

.identity-buttons-row {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 5px;
}

.identity-button {
    color: white;
    background-color: gray;
    padding: 2%;
    margin-block: 2px;
    padding-inline: 5% !important;
    font-weight: bold !important;
    font-size: 1em !important;
}

    .identity-button:hover {
        opacity: 0.9;
        border-color: transparent;
        background-color: gray;
    }

    .identity-button:focus {
        opacity: 0.8;
        border-color: transparent;
        background-color: gray;
    }

.identity-submit-button {
    color: white;
    background-color: #CC3B3B;
    padding: 2% !important;
    margin-block: 2px;
    padding-inline: 5% !important;
    font-weight: bold !important;
    font-size: 1em !important;
}

    .identity-submit-button:hover {
        opacity: 0.9;
        border-color: transparent;
        background-color: #CC3B3B;
    }

    .identity-submit-button:focus {
        opacity: 0.8;
        border-color: transparent;
        background-color: #CC3B3B;
    }

.identity-form .field-validation-error,
.identity-form .validation-summary-error,
.identity-form .text-danger {
    color: orange !important;
    font-size: 12px;
    font-weight: normal;
    width: 100%;
}

.password-icon {
    display: flex;
    width: 16px;
    transition: all 0.2s;
    float: right;
    transform: translate(-100%,-162%);
}

    .password-icon:hover {
        cursor: pointer;
    }

    .password-icon .eye-off-icon {
        display: none;
    }