/* @media (min-width: 576px)  // sm */
/* @media (min-width: 768px)  // md */
/* @media (min-width: 992px)  // lg */
/* @media (min-width: 1200px) // xl */

/* Globals */

* {
    font-family: 'Roboto', 'Droid Arabic Kufi';
}

.arabic {
    font-family: "Droid Arabic Kufi"
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

::-webkit-scrollbar {
    display: none;
}

a {
    color: #667aff;
}

.navbar {
    position: absolute;
    width: 100vw;
    top: 20pt;
    padding-right: 32pt;
    display: flex;
    justify-content: flex-end;
}

/* Main Container */

.main {
    background: none;
    max-width: 100vw;
    box-shadow: none;
}

/* Main Container Banner */

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80pt;
    width: 400pt;
}

.banner > p {
    font-size: 26pt;
    margin-bottom: 0;
}

.banner .icon {
    height: 60%;
}

.banner .logo.gray {
    height: 42px;
}

/* Main Container Form (and children items) */

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    height: auto;
}

.form .item {
    margin: 10pt;
    display: flex;
    flex-direction: column;
}

.form .item .label {
    color: #555;
    opacity: 0.55;
    margin-bottom: 2pt;
    display: none;
}

.form .item input {
    outline: none;
    border: solid 1px rgba(0, 0, 0, 0);
    border-radius: 4pt;
    height: 36pt;
    width: 100%;
    padding: 10pt;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075);
}

.form .item input::placeholder {
    opacity: 0.5;
}

.form .btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.form .btn-wrapper button {
    padding: 6pt;
    min-width: 100pt;
    background-color: #586ada;
    border: none;
    color: white;
    border-radius: 4pt;
    cursor: pointer;
    box-shadow: 0 2pt 4pt rgba( 88, 106, 218, 0.25);
    transition-duration: 0.2s;
    transition-property: transform, background-color;
    outline: none;
}

.form .btn-wrapper button:hover {
    background-color: #667aff;
}

.form .btn-wrapper button:active {
    transform: scale(0.9);
}

.form .flex-row {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: top;
    margin-top: 0;
}

.bottom-links {
    display: flex;
    justify-content: center;
    color: rgba(0, 0, 0, 0.8);
    width: 80%;
    flex-direction: column;
    align-items: center;
    margin-top: 20pt;
}

.squeeze {
    width: 400pt;
}

/* Responsive */

@media (max-width: 500pt) {
    .banner, .form .item, .squeeze {
        width: 80%;
    }
}

/* Screen-too-small Overlay */

.too-small-overlay {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100%;
    background-color: #37474f;
    z-index: 10000;
    color: white;
    justify-content: space-around;
    align-items: center;
}

.too-small-overlay div {
    padding: 20pt;
}

/* Animations */

/* Incorrect Username/Password */

.denied {
    animation: shake 1s;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% {transform: translate3d(-2px, 0, 0);}

    20%, 80% {transform: translate3d(4px, 0, 0);}

    30%, 50%, 70% {transform: translate3d(-8px, 0, 0);}

    40%, 60% {transform: translate3d(8px, 0, 0);}
}

/* Swal2 popups */

.swal2-container {
    font-family: Roboto !important;
}

.swal2-popup {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.swal2-title {
    color: #0275d8 !important;
    color: rgb(38,50,56) !important;
}

.swal2-content *:not(.arabic) {
    font-family: Roboto;
    line-height: 150% !important;
    font-weight: 300;
}