/*
 * Stiluri folosite de head.php comun și de pagina de autentificare.
 * Sunt preluate din style.css al aplicațiilor intranet Mercury și limitate
 * la clasele efectiv generate de head.php, login.php și footer.php.
 */

body,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    color: #31408c;
    font-family: Verdana, sans-serif;
}

body {
    border-top: 3px solid #14589a;
    background: #fff;
}

a,
a:link,
a:visited {
    color: #31408c;
    text-decoration: none;
}

a:hover,
a:active {
    color: green;
}

a.tabSelected {
    color: #fff;
}

a.tabSelected:hover {
    color: #31408c;
}

a.nonSelected {
    color: #31408c;
}

a.nonSelected:hover {
    color: #fff;
}

li {
    margin: 0 0 2px;
    padding: 2px;
    list-style: none;
    font-size: 16px;
}

h1 {
    margin: 0 0 10px;
    padding: 2px;
    font-size: 18px;
}

table {
    clear: both;
    border-collapse: unset;
    empty-cells: show;
}

th,
td {
    padding: 2px 4px;
    border: 0 solid #ddd;
    vertical-align: top;
}

img {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

table.h1,
table.h2,
table.h3,
table.f1,
table.tbl1,
table.tbl2 {
    width: 1100px;
    max-width: calc(100vw - 24px);
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

table.h1 {
    border: 1px solid grey;
}

table.h2 {
    border: 1px;
}

table.h3 {
    border: 0 solid grey;
}

table.tbl1 {
    border: 2px;
}

table.tbl2 {
    border: 1px solid grey;
}

tr.tbl3tr1 {
    border-left-style: solid;
}

.tab {
    float: left;
    height: 44px;
    margin: 0 8px -1px 0;
    overflow: hidden;
    border: 1px solid #dae0e7;
    border-radius: 8px 8px 0 0;
    background: #f9f9f9;
}

.tab,
.tab a {
    transition: all .25s;
}

.tab a {
    display: inline-block;
}

.tab a:first-child {
    padding: 8px;
    white-space: nowrap;
}

.tab:hover {
    color: blue;
    background: grey;
}

.tabSelected {
    height: 45px;
    border-bottom: none;
    color: red;
    background: grey;
    text-decoration: none;
}

.page-login {
    clear: both;
}

.page-login > table.tbl1 {
    margin-top: 0;
}

table.tbl3 {
    width: 100%;
    table-layout: fixed;
}

table.tbl3 tr.equal-cols > td.half {
    width: 50%;
    vertical-align: top;
}

.page-login table.tbl3 fieldset {
    display: block;
    width: 100%;
    min-height: 350px;
    box-sizing: border-box;
    margin: 0;
    padding: 16px 20px;
    overflow-wrap: anywhere;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
}

.page-login table.tbl3 legend {
    padding: 0 7px;
    color: #31408c;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.card {
    width: 380px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px 28px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.card > p:not(.err):not(.meta) {
    margin: 0 0 22px;
    color: #3e4774;
    font-size: 13px;
    line-height: 1.55;
}

.err {
    color: #b00020;
}

.meta {
    margin-top: 10px;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.btn-login,
a.btn-login,
button.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #31408c;
    border-radius: 10px;
    color: #fff !important;
    background: #31408c;
    font: 600 14px/1.2 Verdana, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .02s ease;
    user-select: none;
    appearance: none;
}

a.btn-login:link,
a.btn-login:visited {
    color: #fff !important;
    text-decoration: none;
}

.btn-login:hover {
    border-color: #3c4db0;
    color: #fff !important;
    background: #3c4db0;
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 64, 140, .25);
}

.microsoft-mark {
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.login-footer {
    margin-top: 12px;
    color: #31408c;
    font-size: 14px;
    font-weight: 700;
}

.login-footer hr {
    border: 0;
    border-top: 1px solid #888;
}

.login-footer p {
    margin: 24px 5px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        width: min(92vw, 420px);
    }

    .page-login table.tbl3 fieldset {
        min-height: 0;
    }
}
