﻿/* login
--------------------------- */
main {
    flex: 1 0 auto;
    padding: 0 0 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

strong {
    color: black !important;
    font-weight: 600;
    font-size: 1.1rem;
}

ol, ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 90%;
    max-width: 400px;
    list-style: none;
}

ol {
    padding: 0 0 1.2rem;
}

li {
    position: relative;
    width: 100%;
}

ol li {
    padding: 0 0 0.8em;
}

.login-page input[type=text],
.login-page input[type=email],
.login-page input[type=password],
.login-page input[type=checkbox] + label {
    position: relative;
    margin: 0 0 5px 20px;
    padding: 0.75em 0.75em 0.75em 1.9em;
    width: 92%;
    height: 3em;
    line-height: 1.5em;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

input[type=checkbox]:not(:first-of-type) + label {
    margin: 0;
}

.login-page input[type=text],
.login-page input[type=email],
.login-page input[type=password] {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(51,156,208,1);
    box-shadow: 0 0 0 rgba(51,156,208,0);
}

.login-page input:focus {
    width: 96%;
    background: rgba(255,255,255,1);
    box-shadow: 0 0 8px rgba(51,156,208,0.5);
    margin-left: 3%;
}

input::placeholder {
    color: rgba(89,87,87,0.6);
    font-size: 0.8em;
    opacity: 1;
    transition: 0.2s;
}

input:focus::placeholder {
    color: rgba(89,87,87,0);
}

input[type=email] + label,
input[type=password] + label {
    display: block;
    position: absolute;
    top: 0;
    left: calc(6% + 0.5em);
    bottom: 0;
    color: rgba(89,87,87,0.5);
    font-size: 1.2rem;
    line-height: 3em;
    z-index: 1;
    transition: all 0.3s ease;
}

input:focus + label {
    color: rgba(51,156,208,1);
    left: calc(5% + 0.5em);
}

input:required:valid + label {
    color: rgba(51,156,208,1);
}

input[type=checkbox] {
    display: none;
    width: 0;
    height: 0;
    overflow: hidden;
}

input[type=checkbox] + label {
    display: block;
    font-size: 1rem;
    text-align: left;
    background: rgba(89,87,87,0.1);
}

input[type=checkbox] + label:hover {
    width: 101%;
    margin-left: 3px;
}

input[type=checkbox] + label:hover,
input[type=checkbox]:checked + label {
    color: rgba(255,255,255,1);
    background: rgba(89,87,87,0.7);
}

input[type=checkbox] + label::after {
    font-family: "Font Awesome 5 free";
    content: "\f00c";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0.3em;
    bottom: 0;
    margin: auto;
    width: 1.8em;
    height: 1em;
    line-height: 1em;
    text-align: center;
    transition: 0.2s;
    opacity: 0.2;
}

input[type=checkbox]:checked + label::after {
    opacity: 1;
}

input[type=checkbox] + label span,
input[type=checkbox]:checked + label em {
    display: none;
}

input[type=checkbox] + label em,
input[type=checkbox]:checked + label span {
    display: inline;
}

.login-page button {
    position: relative;
    margin: 0 auto;
    border-radius: 0.8em;
    border: none;
    width: 50%;
    height: 3em;
    color: #FFF;
    font-size: 1.1rem;
    line-height: 3em;
    background: #86ad43;
    transition: all 0.3s ease;
    margin-left: 6px;
}

.login-page button:hover {
    background: #5e772f;
    width: 55%;
    transform: translateY(-2px);
}

.login-page button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.login-page button figure {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    font-size: 1.2rem;
    width: 3.3rem;
    height: 3.3rem;
    line-height: 3.3rem;
}

#dgSctMain {
    width: 500px;
}

.error {
    color: red;
}

#btnCloseCommonMsg {
    width: 9rem;
    height: 3rem;
    background: #595757;
}

.modal-footer {
    justify-content: center;
}

.validation-summary-errors {
    text-align: left;
    margin-bottom: 20px;
}

.text-left {
    text-align: left;
    padding-left: 20px;
}

.group-input {
    display: flex;
    align-items: center;
}

.login-accordion {
    width: 100%;
    max-width: 380px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.login-logo {
    width: 6rem;
    height: auto;
    padding: 10px 10px 0 10px;
}

.login-option {
    border: 1px solid rgba(89,87,87,0.6);
    border-radius: 0.5em;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 0.6;
}

    .login-option:hover,
    .login-option.active {
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        width: 100%;
        opacity: 1.1;
        transform: scale(1.05, 1);
    }

.login-header {
    padding: 0.8rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    font-size: 0.9rem;
    gap: 0.5rem;
    width: 100%;
    transition: color 0.2s ease;
}
    .login-header > :last-child {
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.login-form {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
}

.login-form.active {
    display: flex;
}

.login-content {
    border: 2px;
    border-radius: 1rem;
    max-width: 380px;
    width: 100%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    animation: slideInRight 0.4s ease forwards;
}

.login-form.active {
    animation: slideInRight 0.4s ease forwards;
}

.form-body {
    padding: .5rem 2rem 1.5rem 2rem;
    border-radius: 10px;
}

.input-error {
    border: 2px solid #e74c3c !important;
    background-color: #fff5f5;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px) brightness(0.9);
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.2s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 12px rgba(52,152,219,0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    60% {
        opacity: 1;
        transform: translateX(-6px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    ol {
        padding: 0 0 1rem;
    }

    .login-content ,.login-accordion {
        max-width: 300px;
    }

    .btn:hover {
        transform: none !important;
    }

    .login-option:hover {
        box-shadow: none !important;
        transform: none !important;
        opacity: inherit !important;
    }

    #dgSctMain {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    input[type=email], input[type=password], input[type=checkbox] + label {
        margin: 0;
        width: 100%;
        padding: 0.75em 0.75em 0.75em 2.1em;
    }

    input[type=email] + label, input[type=password] + label {
        left: calc(2% + 0.5em);
    }

    .login-header, .login-header strong, .login-header span {
        font-size: 0.9rem !important;
    }
}
#changePass {
    display: block;
    width: 100%;
    text-align: center;
    margin: 1.6rem auto 1.6rem
}
#changePass a {
    margin: 0 auto;
    display: block;
    width: fit-content;
    color: #009fe8;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Material Symbols Outlined';
    transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
}
#changePass a:hover {
    color: #1b7c9e;
    font-weight: 500;
    text-decoration: underline;
}