/* =========================================================
   Softify POS - Login Page
   Path: ~/Content/assets/css/login.css
   Image: ~/Content/assets/images/LoginImg/login-bg.jpg
   ========================================================= */

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0 !important;
    background: #f5f8fd !important;
    background-image: none !important;
}

.pos-login,
.pos-login h1,
.pos-login h2,
.pos-login p,
.pos-login a,
.pos-login label,
.pos-login input,
.pos-login button {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif !important;
}

.pos-login,
.pos-login * {
    box-sizing: border-box;
}

.pos-login .ico {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---------- page ---------- */
.pos-login {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background: #f5f8fd;
    background: linear-gradient(180deg, #ffffff 0%, #eef3fa 100%);
    color: #0f2245;
}

/* store photo: covers the whole left side, softened with a light see-through layer */
.pos-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 128vh;       /* same shape as the photo, so it is never zoomed/cropped */
    max-width: 80%;
    z-index: 0;
    opacity: 0.6;       /* image transparency: 1 = full image, 0 = invisible */
    background: url("../images/LoginImg/login-bg.jpg") left bottom no-repeat;
    background-size: auto 100%;
}

.pos-photo:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 45%, rgba(255,255,255,0) 70%),
                linear-gradient(270deg, #f4f7fc 0%, rgba(244,247,252,.7) 10%, rgba(244,247,252,0) 28%);
}

/* blue background, visible only in the corners */
.pos-blue {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #0d6efd;
    background: linear-gradient(160deg, #0d6efd 0%, #0838a8 100%);
}

/* big white round area (left content + login card sit inside it) */
.pos-white {
    position: absolute;
    top: -25%;
    left: -22%;
    width: 124%;
    height: 150%;
    z-index: 0;
    border-radius: 50%;
    background: #f4f7fc;
    box-shadow: 0 0 0 16px rgba(255,255,255,.18), 0 0 0 34px rgba(255,255,255,.08);
}

/* ---------- left side ---------- */
.pos-login-left {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    padding: 44px 40px 0 64px;
}

.pos-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.pos-brand-icon {
    width: 76px;
    height: 66px;
    margin-right: 16px;
}

.pos-brand-text {
    display: flex;
    flex-direction: column;
}

.pos-brand-name {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #0b2a5c;
}

.pos-brand-name b {
    font-weight: 700;
    color: #0d6efd;
}

.pos-brand-sub {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #0b2a5c;
}

.pos-login .pos-headline {
    margin: 46px 0 14px;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.25;
    color: #0b2a5c;
}

.pos-headline span {
    display: block;
    color: #0d6efd;
}

.pos-login .pos-tagline {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.55;
    color: #3a4a66;
}

.pos-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
}

.pos-features li {
    flex: 0 0 auto;
    width: 104px;
    margin: 0 8px 0 0;
    padding: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #0b2a5c;
}

.pos-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

.pos-clock {
    position: absolute;
    top: 26px;
    right: 34px;
    z-index: 3;
    display: flex;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.45;
}

.pos-clock .ico {
    width: 22px;
    height: 22px;
    margin: 4px 10px 0 0;
}

/* ---------- right side ---------- */
.pos-login-right {
    position: relative;
    z-index: 2;
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 76px 7% 24px 0;
}

.pos-card {
    width: 100%;
    max-width: 545px;
    background: #ffffff;
    border-radius: 18px;
    padding: 50px 56px 22px;
    box-shadow: 0 24px 60px rgba(5,30,90,.18);
}

.pos-card-head {
    text-align: center;
    margin-bottom: 30px;
}

.pos-card-icon {
    display: block;
    width: 110px;
    height: 100px;
    margin: 0 auto;
}

.pos-login .pos-card-head h2 {
    margin: 22px 0 10px;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    color: #0b2a5c;
}

.pos-login .pos-welcome {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #3a4a66;
}

.pos-login .pos-hint {
    margin: 0;
    font-size: 14px;
    color: #5b6b85;
}

/* errors */
.pos-errors .validation-summary-errors,
.pos-errors #lblError {
    display: block;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fdecec;
    color: #c0262d;
    font-size: 13px;
    font-weight: 500;
}

.pos-errors .validation-summary-errors ul {
    margin: 0;
    padding-left: 16px;
}

.pos-errors .validation-summary-valid {
    display: none;
}

/* fields */
.pos-field {
    margin-bottom: 22px;
}

.pos-input {
    position: relative;
}

.pos-input > .ico {
    position: absolute;
    left: 20px;
    top: 50%;
    z-index: 2;
    width: 21px;
    height: 21px;
    margin-top: -11px;
    color: #0b2a5c;
    pointer-events: none;
}

.pos-login .pos-input .form-control {
    display: block;
    width: 100%;
    height: 56px !important;
    padding: 0 52px 0 58px !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    font-size: 16px !important;
    color: #0f2245;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}

.pos-login .pos-input .form-control:focus {
    outline: none;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15) !important;
}

/* stop Chrome's blue autofill background */
.pos-login .pos-input .form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f2245;
}

.pos-login .pos-input .input-validation-error {
    border-color: #e5484d !important;
}

.pos-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin-top: -19px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0b2a5c;
    line-height: 1;
    cursor: pointer;
}

.pos-eye:focus {
    outline: 2px solid #0d6efd;
}

.pos-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #e5484d;
}

/* remember + forgot */
.pos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 28px;
}

.pos-check {
    position: relative;
}

.pos-check input {
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 0 !important;
    opacity: 0;
    cursor: pointer;
}

.pos-login .pos-check label {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-left: 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #0f2245;
    cursor: pointer;
}

.pos-check label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 1.5px solid #b8c4d6;
    border-radius: 5px;
    background: #ffffff;
    transition: background .15s, border-color .15s;
}

.pos-check label:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 6px;
    height: 11px;
    margin-top: -7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.pos-check input:checked + label:before {
    background: #0d6efd;
    border-color: #0d6efd;
}

.pos-check input:checked + label:after {
    opacity: 1;
}

.pos-check input:focus + label:before {
    box-shadow: 0 0 0 3px rgba(13,110,253,.2);
}

.pos-login .pos-link {
    font-size: 14px;
    color: #0d6efd;
    text-decoration: none;
}

.pos-login .pos-link:hover,
.pos-login .pos-link:focus {
    color: #0a4fd1;
    text-decoration: underline;
}

/* button */
.pos-login .pos-btn {
    display: block;
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.pos-btn .ico {
    width: 21px;
    height: 21px;
    margin: -3px 10px 0 0;
}

.pos-btn:hover {
    background: #0a4fd1;
}

.pos-btn:focus {
    outline: 3px solid rgba(13,110,253,.35);
    outline-offset: 2px;
}

.pos-login .pos-contact {
    margin: 22px 0 0;
    text-align: center;
    font-size: 14px;
    color: #5b6b85;
}

.pos-card-foot {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #edf1f7;
    text-align: center;
    font-size: 12px;
    color: #5b6b85;
}

.pos-card-foot .ico {
    width: 15px;
    height: 15px;
    margin: -2px 4px 0 0;
}

.pos-sep {
    margin: 0 10px;
    color: #c5cede;
}

.pos-login .pos-copy {
    margin: 14px 0 0;
    font-size: 12px;
    color: #5b6b85;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .pos-login-left { padding: 36px 24px 0 40px; }
    .pos-brand-name { font-size: 36px; }
    .pos-brand-icon { width: 62px; height: 54px; }
    .pos-login .pos-headline { font-size: 28px; }
    .pos-features li { width: 92px; font-size: 12px; }
    .pos-card { padding: 40px 36px 20px; }
}

@media (max-width: 900px) {
    .pos-login { flex-direction: column; }
    .pos-photo { width: 100%; max-width: none; background-size: cover; background-position: center bottom; }
    .pos-photo:after { background: rgba(255,255,255,.7); }
    .pos-blue, .pos-white { display: none; }
    .pos-login-left { padding: 28px 20px 10px; }
    .pos-login .pos-headline { margin-top: 26px; font-size: 24px; }
    .pos-features { flex-wrap: wrap; }
    .pos-features li { width: 80px; margin-bottom: 12px; font-size: 11px; }
    @media (max-width: 480px) {
    .pos-brand-name { font-size: 28px; }
    .pos-brand-icon { width: 48px; height: 42px; margin-right: 10px; }
    .pos-brand-sub { font-size: 9px; letter-spacing: 1.5px; }
    .pos-features { display: none; }
    .pos-photo { display: none; }
    .pos-login .pos-tagline br { display: none; }
    .pos-clock { display: none; }
    .pos-card { padding: 30px 20px 18px; border-radius: 14px; }
    .pos-login .pos-card-head h2 { font-size: 28px; }
}

/* the Softify POS logo replaces the drawn icon and the "Softify POS / Point of Sale Management System" text */
.pos-brand-logo {
    display: block;
    height: 76px;
    width: auto;
}

@media (max-width: 1200px) {
    .pos-brand-logo { height: 64px; }
}
