/* Font faces */
@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP-UltraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP-Regular.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP-Medium.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'GIP';
    src: url('/fonts/GIP-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

body {
    background: #F6F6F6;
    align-items: center;
    font-family: 'GIP', sans-serif;
    font-feature-settings: 'liga' off, 'clig' off;
}

/* Remove autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 9999s ease-in-out 0s;
    -webkit-text-fill-color: black !important;
    caret-color: black;
}

/* Remove autofill inner shadow */
input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #FBFBFD inset !important;
    /* match your background */
}

/* Force font */
input {
    font-family: GIP !important;
    background: #FBFBFD !important;
    color: black !important;
}

.form-control {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.is-invalid {
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    /* remove red border + background */
    background-color: transparent !important;
}

.is-invalid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5.5'/%3E%3Cline x1='6' y1='3' x2='6' y2='6.5'/%3E%3Ccircle cx='6' cy='8.75' r='.6' fill='%23dc3545' stroke='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Normal state */
.input-wrapper {
    outline: 1.5px solid black;
    outline-offset: -1.5px;
    width: 352px;
}

/* Error state: when child input has .is-invalid */
.input-wrapper:has(input.is-invalid) {
    outline: 1.5px solid red !important;
}

/* Error message text */
.error-text {
    color: red;
    font-size: 13px;
    margin-top: 4px;
    font-family: GIP;
}

.row {
    display: flex;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.box1 {
    flex: 1;
    display: flex;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.box2 {
    flex: 1;
    display: flex;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 97vh;
    height: 100%;
    margin-top: 0 !important;
    margin-left: 14px !important;
    margin-bottom: 0 !important;
}

.cute-text {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.cute-text:hover {
    transform: translateY(-3px);
    color: #00FFED;
    opacity: 0.7;
}

/* Staggered */
.stagger-item {
    opacity: 0 !important;
    transform: translateY(14px) scale(.995) !important;
    transition-property: opacity, transform !important;
    transition-duration: var(--anim-dur), var(--anim-dur) !important;
    transition-timing-function: var(--easing), var(--easing) !important;
    will-change: opacity, transform;
}

.stagger-item.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.stagger-section.stagger-self {
    opacity: 0 !important;
    transform: translateY(16px) !important;
    transition-property: opacity, transform !important;
    transition-duration: var(--anim-dur), var(--anim-dur) !important;
    transition-timing-function: var(--easing), var(--easing) !important;
}

.stagger-section.stagger-self.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {

    .stagger-item,
    .stagger-section {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

.box2-image {
    width: 497.66px;
}

.login-btn {
    width: 352px !important;
}

.login-method {
    width: 352px !important;
}

.login-via {
    width: 352px !important;
}

.login-action {
    width: 352px !important;
}

.login-method-line {
    width: 100px !important;
}

.login-option {
    width: 104px !important;
}

.login-option-text {
    font-size: 12px !important;
    line-height: 12px !important;
}

/* Staggered end */

@media only screen and (max-width: 1200px) {
    .box1 {
        flex: 0 !important;
        display: none !important;
    }

    .inner {
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 768px) {
    .box2-image {
        width: 300px !important;
    }
}

@media only screen and (max-width: 480px) {
    .box2-image {
        width: 200px !important;
    }

    .input-wrapper {
        width: 250px !important;
    }

    .login-btn {
        width: 250px !important;
    }

    .login-method {
        width: 250px !important;
    }

    .login-via {
        width: 250px !important;
    }

    .login-action {
        width: 250px !important;
    }

    .login-method-line {
        width: 50px !important;
    }

    .login-option {
        width: 72px !important;
    }

    .login-option-icon {
        display: none !important;
    }

    .login-option-text {
        font-size: 12px !important;
        line-height: 12px !important;
    }
}

@media only screen and (max-width: 330px) {
    .input-wrapper {
        width: 230px !important;
    }

    .login-btn {
        width: 230px !important;
    }

    .login-method {
        width: 230px !important;
    }

    .login-via {
        width: 230px !important;
    }

    .login-action {
        width: 230px !important;
    }

    .login-method-line {
        width: 35px !important;
    }

    .login-option {
        width: 68px !important;
    }

    .login-option-text {
        font-size: 10px !important;
        line-height: 10px !important;
    }
}

.register-box {
    padding: 32px;
    position: absolute;
    background: white;
    box-shadow: 6px 12px 32px 2px rgba(160, 163, 189, 0.15);
    overflow: hidden;
    border-radius: 24px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    display: inline-flex
}

@media only screen and (max-height: 750px) {
    .register-box {
        display: flex !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
}

/* Staggered */
.stagger-item {
    opacity: 0 !important;
    transform: translateY(14px) scale(.995) !important;
    transition-property: opacity, transform !important;
    transition-duration: var(--anim-dur), var(--anim-dur) !important;
    transition-timing-function: var(--easing), var(--easing) !important;
    will-change: opacity, transform;
}

.stagger-item.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.stagger-section.stagger-self {
    opacity: 0 !important;
    transform: translateY(16px) !important;
    transition-property: opacity, transform !important;
    transition-duration: var(--anim-dur), var(--anim-dur) !important;
    transition-timing-function: var(--easing), var(--easing) !important;
}

.stagger-section.stagger-self.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {

    .stagger-item,
    .stagger-section {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

:root {
  --stagger-base: 375ms;
  --anim-dur: 1075ms;
  --easing: cubic-bezier(.22, .9, .34, 1);
}