/* Sign-in, registration and other public form pages (layouts/auth): form on the left, brand visual on the right. */

.auth-body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: #3c3c3c;
}

.auth-body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-family: Jost, "Source Sans 3", sans-serif;
}

.auth-body h1, .auth-body h3 {
    color: #040404;
}

.auth-body .btn:focus,
.auth-body .form-control:focus,
.auth-body .form-check-input:focus {
    outline: 0;
    box-shadow: none;
}

.auth-page a {
    color: #535353;
    text-decoration: none;
}

.auth-form {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 15px;
    text-align: center;
    background: #fff2f2;
}

.auth-form-inner {
    width: 100%;
    max-width: 500px;
}

.auth-page .brand-logo img {
    height: 25px;
    margin-bottom: 15px;
}

.auth-form h3 {
    margin: 0 0 25px;
    font-size: 25px;
    font-weight: 400;
}

.auth-form p {
    margin-bottom: 0;
    font-size: 16px;
}

.auth-form p p {
    color: #535353;
}

.auth-form ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form .form-control {
    height: 55px;
    padding: 11px 20px 9px;
    font-size: 16px;
    font-weight: 500;
    color: #535353;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    outline: none;
}

.auth-form .form-check {
    margin-bottom: 0;
}

.auth-form .form-check-input {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-top: 0;
    margin-left: -22px;
    background-color: #fff;
    border: 2px solid #8a8f98;
    border-radius: 3px;
}

.auth-form .form-check-input:checked {
    background-color: #f5c025 !important;
    border-color: #e3af18;
}

.auth-form .form-check-label {
    padding-left: 5px;
    font-size: 16px;
    color: #535353;
}

.auth-form a.forgot-password {
    font-size: 16px;
}

/* "Sign in with Google" */
.auth-form .social-list li {
    display: inline-block;
    margin-bottom: 5px;
}

.auth-page .social-list li a {
    display: inline-block;
    width: 130px;
    height: 40px;
    margin: 2px 0 3px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 40px;
    text-align: center;
    color: #fff;
}

.auth-page .social-list li a span {
    margin-right: 7px;
}

.auth-page .google-bg {
    background: #db4437;
}

.auth-page .microsoft-bg {
    background: #2f2f2f;
}

.auth-page .microsoft-i {
    padding: 2px;
    background: #fff;
}

.auth-page .google-i {
    padding: 2px;
    border-radius: 50%;
    background: #fff;
}

@media (max-width: 992px) {
    .auth-page .social-list li a { width: 120px; }
}

.auth-link {
    margin-left: 4px;
}

/* "oder" divider between the form and the register link */
.auth-divider {
    position: relative;
    margin-bottom: 25px;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 100%;
    height: 1px;
    background: #d8dcdc;
}

.auth-divider > span {
    position: relative;
    padding: 1px 20px;
    font-size: 15px;
    color: #535353;
    background: #fff2f2;
}

/* primary action: yellow button that fills from the bottom on hover */
.auth-btn {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    border: none;
    border-radius: 3px;
    outline: none !important;
    color: #fff;
    font-family: Jost, "Source Sans 3", sans-serif;
    font-size: 17px;
    font-weight: 400;
    text-transform: capitalize;
    cursor: pointer;
    transition: all .3s linear;
}

.auth-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 3px;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform .35s ease-out;
}

.auth-btn:hover::after {
    transform: scaleY(1);
}

.auth-page .btn {
    box-shadow: none !important;
}

.auth-page .btn-lg {
    padding: 0 50px;
    line-height: 55px;
}

.auth-page .btn-primary {
    --bs-btn-bg: #f5c025;
    --bs-btn-border-color: #f5c025;
    --bs-btn-hover-bg: #f5c025;
    --bs-btn-hover-border-color: #f5c025;
    --bs-btn-active-bg: #e3af18;
    --bs-btn-active-border-color: #e3af18;
    background: #f5c025;
}

.auth-page .btn-primary::after {
    background: #e3af18;
}

/* right half: photo with a plum veil and slowly falling light lines */
.auth-visual {
    position: relative;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
    background: url(../img/auth/bg_login.jpg) top left / cover;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(36 10 99 / 47%);
}

.auth-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.auth-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 5px;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, .1);
}

.auth-line::after {
    content: "";
    position: absolute;
    top: -50%;
    left: 0;
    display: block;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 75%, #fff 100%);
    animation: auth-line-fall 7s cubic-bezier(.4, .26, 0, .97) infinite forwards;
}

.auth-line:nth-child(1) { margin-left: -40%; }
.auth-line:nth-child(1)::after { animation-delay: 1s; }
.auth-line:nth-child(3) { margin-left: 40%; }
.auth-line:nth-child(3)::after { animation-delay: 2s; }
.auth-line:nth-child(4) { margin-left: -20%; }
.auth-line:nth-child(4)::after { animation-delay: 3s; }
.auth-line:nth-child(5) { margin-left: 20%; }
.auth-line:nth-child(5)::after { animation-delay: 4s; }

@keyframes auth-line-fall {
    0% { top: -50%; }
    100% { top: 110%; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-line::after { animation: none; }
}

.auth-visual-text {
    position: relative;
    max-width: 650px;
}

.auth-visual-text p {
    font-size: 15px;
    line-height: 25px;
    color: #fff;
    opacity: .8;
}

.auth-visual-title h1 {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin-bottom: 20px;
    font-family: Jost, "Source Sans 3", sans-serif;
    font-size: 55px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.auth-visual-title h1 span {
    padding-left: 2px;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

@media (max-width: 1200px) {
    .auth-visual-title h1 { font-size: 40px; }
}

@media (max-width: 992px) {
    .auth-visual { display: none; }
}
