﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

body#pages-sign-in-new {
    margin: 0;
    padding: 0;
    font-family: 'Mulish', sans-serif !important;
    background: #fff;
    min-height: 100vh;
}

.auth-layout {
    display: flex;
    min-height: 100vh;
}

.auth-layout_left {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 40px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.auth-layout.full-width .auth-layout_left {
    width: 100%
}

.auth-layout_left .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #475467;
}

.auth-layout_left .footer a {
    text-decoration: underline;
    color: #475467;
}

.auth-layout_left .logo {
    margin-bottom: 60px;
}

.auth-layout_left .logo img {
    height: 32px;
    width: 130px;
}

.auth-layout_left .form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-layout_left .form-wrapper #auth-root {
    width: 488px;
}

.auth-step {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    animation: stepSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-step.is-hidden {
    display: none !important;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(32px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.auth-title.forgot,
.auth-title.locations{
    margin-bottom: 32px;
}

.auth-subtitle {
    font-size: 24px;
    color: #101828;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.auth-subtitle.locations {
    text-align: center;
}

.auth-field {
    margin-bottom: 20px;
    position: relative;
}

.auth-field label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1D2939;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    height: 58px;
    padding: 0 16px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
    color: #667085;
}

.auth-field input:focus {
    border-color: #136BFB;
}

.auth-field input.is-invalid {
    border-color: #f87171;
}

.auth-field:has(.icon-btn) input {
    padding-right: 48px;
}

.auth-field .icon-btn {
    position: absolute;
    right: 16px;
    top: 50px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
}

.auth-forgot {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #136BFB;
    text-decoration: none;
    margin-top: -12px;
    margin-bottom: 28px;
    cursor: pointer;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    height: 52px;
    background: #1D2939;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    margin-bottom: 32px;
}

.auth-btn:hover {
    background: #344054;
}

.auth-btn:active {
    transform: scale(0.99);
}

.auth-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.auth-btn.ghost {
    background: transparent;
    color: #666;
    border: 1.5px solid #e5e5e5;
}

.auth-btn.ghost:hover {
    background: #f9f9f9;
    color: #333;
}

.auth-terms {
    font-size: 16px;
    font-weight: 700;
    color: #475467;
    text-align: center;
    line-height: 1.5;
}

.auth-terms a {
    color: #888;
    text-decoration: underline;
}

.auth-otp {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
}

.auth-otp input {
    width: 58px;
    height: 72px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    border: 1px solid #D0D5DD;
    border-radius: 10px;
    outline: none;
    color: #1D2939;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -moz-appearance: textfield;
}

.auth-otp input::-webkit-outer-spin-button,
.auth-otp input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.auth-otp input:focus {
    border-color:  #136BFB;
}

.auth-locations {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.auth-location-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #E4E7EC;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-location-item .location-logo {
    height: 68px;
    width: 68px;
    flex-shrink: 0;
}

.auth-location-item .location-logo img {
    height: 100%;
    width: 100%;
}

.auth-location-item:hover {
    background-color: #E7F0FF;
}

.auth-location-item.is-selected {
    background-color: #E7F0FF;
}

.auth-location-item .main-info {
    display: flex;
}

.auth-location-item .description {
    display: flex;
    flex-direction: column;
}

.auth-location-item .description .main-info {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.auth-location-search {
    margin-bottom: 16px;
}

.auth-location-search input {
    padding-left: 42px;
}

.auth-location-search svg {
    position: absolute;
    left: 16px;
    top: 20px;
    z-index: 10;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 20px;
    display: none;
}

.auth-error.is-visible {
    display: block;
}

.auth-layout_right {
    flex: 1;
    margin: 16px 16px 16px 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c084fc 0%, #e879f9 25%, #f472b6 50%, #fb923c 75%, #fbbf24 100% );
}

.auth-layout_right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.08) 0%, transparent 50%);
}

.auth-layout_right-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.auth-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.auth-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

.auth-slide.is-active {
    transform: translateX(0);
    opacity: 1;
}

.auth-slide.slide-next {
    transform: translateX(100%);
}

.auth-slide.slide-prev {
    transform: translateX(-100%);
}

.auth-slide.is-leaving-next {
    transform: translateX(-100%);
    opacity: 0;
}

.auth-slide.is-leaving-prev {
    transform: translateX(100%);
    opacity: 0;
}

.auth-slide img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
}

.auth-slide-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.auth-slide-dot {
    width: 12px;
    height: 6px;
    border-radius: 18px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, width 0.2s ease;
}

.auth-slide-dot.is-active {
    width: 32px;
    background: #fff;
}


@media (max-width: 1023px) {
    .auth-layout_right {
        display: none;
    }

    .auth-layout_left {
        width: 100%;
        padding: 32px 24px;
    }

    .auth-layout_left .form-wrapper #auth-root {
        width: 100%;
    }

    .auth-otp input {
        width: 32px;
        height: 40px;
    }
}
