/* Definitions */

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    cursor: pointer;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
    margin: 0 0 16px 0;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

h3.alt-h3-semibold {
    font-weight: 600;
}

h4 {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.tiny-regular {
    font-size: 12px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.body-regular {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.body1-bold {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.body1-regular {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.body2-bold {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.body2-medium {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.body2-regular {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 140%;
}

.color--primary {
    color: var(--primary-color);
}

.color--secondary {
    color: #13131e;
}

.color--accent {
    color: #0089f6;
}

.color--error {
    color: #f23548;
}

.color--gray-100 {
    color: var(--gray-100-color);
}

.color--gray-200 {
    color: var(--gray-200-color);
}

.color--gray-300 {
    color: var(--gray-300-color);
}


.color--gray-400 {
    color: #e1e5ee;
}

.color--gray-500 {
    color: #c8cedb;
}

.color--gray-600 {
    color: #969dac;
}

.color--gray-700 {
    color: #6b7483;
}

.color--gray-900 {
    color: #3a3f48;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

/* Content */

html {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    grid-template-rows: 100px auto 100px;
    height: 100vh;
    background-size: cover;
    background-repeat:no-repeat;
    background-position: center center;
    background-color: #212830;
    background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.88) 12.33%, rgba(0, 0, 0, 0) 83.66%), url("/assets/images/passport-background.jpg");
}

.error-body {
    background-image: linear-gradient(0deg, rgba(28, 31, 39, 0.95), rgba(28, 31, 39, 0.95)), url("/assets/images/passport-background.jpg");
}

.logo {
    grid-row-start: 1;
    grid-column-start: 2;
    grid-column-end: span 2;
    align-self: center;

    display: flex;
}

.logo img {
    height: var(--logo-height);
}

.logo a {
    margin-top: 20px;
}

.help {
    grid-row-start: 1;
    grid-column-start: 10;
    grid-column-end: span 2;
    align-self: center;

    display: flex;
    flex-direction: row-reverse;
}

.content {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column-end: span 12;
    align-self: center;
}

.error-toast-container {
    position: absolute;
    width: 400px;
    top: 38px;
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
}

.error-toast-container-message {
    display: inline-flex;
    background-color: #feebed;
    border-radius: 4px;
    align-items: center;
    padding: 8px 6px;
}

.error-toast-container-message svg {
    display: flex;
}

.error-toast-container-message svg:last-child {
    cursor: pointer;
}

.error-box {
    max-width: 340px;
    margin: 0 8px;
}

.feather-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.error-content {
    grid-row-start: 2;
    grid-column-start: 5;
    grid-column-end: 9;
    align-self: center;
    text-align: center;
}

.error-content img {
    max-width: 468px;
}

.error-content p > a {
    text-decoration: underline;
}

.error-content p:last-of-type {
    margin-bottom: 48px;
}

.error-content > a {
    text-decoration: none;
    background: white;
    padding: 8px 16px;
    border-radius: 2px;
}

/* Left side */

article section {
    grid-column-start: 2;
    grid-column-end: span 6;
    align-self: center;
    max-width: 510px;
    color: #ffffff;
}

section h1 {
    margin-bottom: 16px;
}

section a.btn-link img {
    height: 44px;
    border-radius: 2px;
}

section ul li:first-child {
    margin-top: 48px;
}

section ul li:last-child {
    margin-bottom: 16px;
}

section ul li:nth-child(2) {
    margin-top: 24px;
}

section p a {
    margin-left: 4px;
}

section form {
    margin-top: 48px;
    margin-bottom: 64px;
}

section form button {
    width: 296px;
    height: 44px;
    border-radius: 2px;
    border: none;
    background-color: #0089f6;
    cursor: pointer;
}

.center-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.center-element input {
    width: 296px;
    height: 42px;
    margin-bottom: 24px;
    border-radius: 2px;
    background-color: #fff;
    text-align: center;
    border: none;
    outline: none;
    letter-spacing: 7px;
    text-transform: uppercase;
}

.center-element input::placeholder {
    letter-spacing: normal;
    text-transform: none;
}

.center-element input:focus::placeholder {
    color: transparent;
}

.left-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}

.left-element input {
    width: 296px;
    height: 42px;
    padding: 0px;
    margin-bottom: 24px;
    border-radius: 2px;
    background-color: #fff;
    text-align: center;
    border: none;
    outline: none;
    letter-spacing: 7px;
    text-transform: uppercase;
}

.left-element input::placeholder {
    letter-spacing: normal;
    text-transform: none;
}

.left-element input:focus::placeholder {
    color: transparent;
}

#confirmation #deny-btn {
    margin-right: 15px;
    background-color: #ffffff;
}

#confirmation p span {
    font-weight: bolder;
}

/* Right side */

article aside {
    height: 100%;
    grid-column-start: 7;
    grid-column-end: span 6;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-column-gap: 24px;
    align-self: center;
    border-left: 1px solid #969dac;
}
article aside div {
    grid-column-start: 2;
    grid-column-end: span 6;
    align-self: center;
    text-align: center;
}

article aside a:visited {
    color: #ffffff;
}

article aside h2,
article aside div p:first-of-type {
    margin-bottom: 24px;
}

footer {
    grid-row-start: 3;
    grid-column-start: 2;
    grid-column-end: span 10;
    align-self: center;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer div {
    display: flex;
    align-items: center;
}

footer a {
    margin-right: 20px;
}

.registration {
    margin-top: 20px;
}

/* RESPONSIVENESS */
/* Using Material Design standard breakpoints to match ngx-components library */

/* Medium screens and below: ≤959.98px (screen-max-laptop) */
@media screen and (max-width: 959.98px) {
    article aside {
        display: none;
    }
    
    /* Better content centering for medium screens and tablets */
    article section {
        grid-column-start: 2;
        grid-column-end: span 10;
        margin: 0 auto;
        max-width: none;
        text-align: center;
    }
}

/* Small screens and below: ≤599.98px (screen-max-tablet) */
@media screen and (max-width: 599.98px) {
    .error-toast-container {
        top: 100px;
        width: 300px;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 0;
    }

    .logo,
    .help,
    .content,
    footer,
    article section {
        grid-column-start: 1;
        grid-column-end: span 1;
        text-align: center;
    }

    .logo,
    .help,
    .content,
    footer {
        margin-left: 24px;
        margin-right: 24px;
    }

    /* Center the content section itself on mobile */
    .content {
        display: flex;
        justify-content: center;
    }

    article {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Remove fixed width constraint on mobile */
    article section {
        max-width: none;
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }
}

