/* ============================================
   ACCOUNT LAYOUT STYLES
   Split-panel design for login, register, and account pages
   ============================================ */

/* TODO could be global */
#AbpPageAlerts { 
    position: fixed;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: max-content;
    max-width: min(92vw, 720px);
}
/* ============================================
   MAIN CONTAINER
   ============================================ */
.app-account-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.account-container {
    overflow: hidden;
}

/* ============================================
   LEFT PANEL (Branding & Illustration)
   ============================================ */
.app-account-left-panel {
    flex: 0 0 35%;
    background: #111827;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-height: 100vh;
}

.app-account-left-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 2;
    position: relative;
}

/* Logo */
.app-account-logo {
    margin-bottom: 1rem;
}

.app-account-logo .app-text-gradient {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

/* Tagline */
.app-account-tagline {
    color: #fff;
}

.app-account-tagline-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.app-account-tagline-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Illustration */
.app-account-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

.app-account-illustration-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple illustration figure */
.app-account-figure {
    position: relative;
    width: 200px;
    height: 250px;
}

.app-account-figure-head {
    width: 60px;
    height: 60px;
    background: var(--adah-primary);
    border-radius: var(--adah-radius-pill);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.app-account-figure-head::before,
.app-account-figure-head::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: var(--adah-radius-pill);
    top: 20px;
}

.app-account-figure-head::before {
    left: 15px;
}

.app-account-figure-head::after {
    right: 15px;
}

.app-account-figure-body {
    width: 80px;
    height: 120px;
    background: var(--adah-primary);
    border-radius: 40px 40px 20px 20px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.app-account-figure-laptop {
    width: 140px;
    height: 90px;
    background: #fff;
    border-radius: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-account-figure-laptop::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 70px;
    background: var(--adah-natural);
    border-radius: 4px;
}

/* Progress Indicators */
.app-account-progress {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 2rem;
}

.app-account-progress-step {
    width: 12px;
    height: 12px;
    border-radius: var(--adah-radius-pill);
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--adah-dur-base) var(--adah-ease);
}

.app-account-progress-step.active {
    background: #fff;
    width: 32px;
    border-radius: var(--adah-radius-pill);
}

/* ============================================
   WAVE SEPARATOR
   ============================================ */
.app-account-wave {
    position: absolute;
    left: 35%;
    top: 0;
    bottom: 0;
    width: 200px;
    background: var(--adah-primary);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 1;
    transform: translateX(-50%);
}

/* Alternative wave using SVG path for smoother curve */
.app-account-wave::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: var(--adah-primary);
    clip-path: path('M 0 0 Q 50 20 100 40 T 200 0 L 200 100 L 0 100 Z');
}

/* ============================================
   RIGHT PANEL (Form Content)
   ============================================ */
.app-account-right-panel {
    flex: 1;
    background: var(--adah-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-height: 100vh;
    position: relative;
}

.app-account-form-container {
    width: 100%;
    margin: 0 auto;
}



/* Terms & Privacy */
.app-account-terms {
    text-align: center;
    font-size: 0.85rem;
    color: var(--adah-muted);
    line-height: 1.6;
    margin-top: 1.5rem;
}

.app-account-terms a {
    color: var(--adah-primary);
    text-decoration: none;
    font-weight: 500;
}

.app-account-terms a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .app-account-container {
        flex-direction: column;
    }

    .app-account-left-panel {
        flex: 0 0 auto;
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .app-account-left-content {
        max-width: 100%;
        gap: 1.5rem;
    }

    .app-account-logo .app-text-gradient {
        font-size: 2rem;
    }

    .app-account-tagline-title {
        font-size: 1.5rem;
    }

    .app-account-illustration {
        min-height: 200px;
    }

    .app-account-wave {
        display: none;
    }

    .app-account-right-panel {
        padding: 2rem 1.5rem;
    }

    .app-account-form-container {
        max-width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .app-account-left-panel {
        padding: 1.5rem 1rem;
    }

    .app-account-logo .app-text-gradient {
        font-size: 1.75rem;
    }

    .app-account-tagline-title {
        font-size: 1.25rem;
    }

    .app-account-tagline-subtitle {
        font-size: 1rem;
    }

    .app-account-illustration {
        min-height: 150px;
    }

    .app-account-figure {
        width: 150px;
        height: 200px;
    }

    .app-account-right-panel {
        padding: 1.5rem 1rem;
    }

    .app-account-form {
        padding: 1.5rem;
    }

    .app-account-form-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */
html[dir="rtl"] .app-account-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .app-account-wave {
    left: auto;
    right: 35%;
    transform: translateX(50%);
    clip-path: polygon(100% 0, 0 0, 0 85%, 100% 100%);
}

html[dir="rtl"] .app-account-password-toggle-icon {
    right: auto;
    left: 1rem;
}

html[dir="rtl"] .app-account-remember {
    flex-direction: row-reverse;
}

/* ============================================
   UTILITY CLASSES FOR ACCOUNT PAGES
   ============================================ */
.app-account-full-width {
    width: 100%;
}

.app-account-text-center {
    text-align: center;
}

.app-account-mt-auto {
    margin-top: auto;
}

.abp-account-layout .account-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}



/* ============================================
   LEFT SLIDER (3 slides)
   ============================================ */

.app-account-slider {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-account-slides {
    position: relative;
    flex: 1;
    min-height: 460px; /* adjust if you want */
}

.app-account-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(32px);
    transition: opacity 450ms ease, transform 450ms ease;
}

    .app-account-slide.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

/* RTL slide motion */
html[dir="rtl"] .app-account-slide {
    transform: translateX(-32px);
}

    html[dir="rtl"] .app-account-slide.active {
        transform: translateX(0);
    }

.app-account-slide-text {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 340px;
}

.app-account-slide-illustration {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

/* Dots: make existing steps clickable buttons */
.app-account-progress-step {
    border: 0;
    cursor: pointer;
    display: inline-block;
    padding: 0;
}

    .app-account-progress-step:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,.15);
    }


.abp-account-layout {
    background: #fff;
    min-height: 100vh;
    overflow: auto;
}

    .abp-account-layout .container {
        display: flex;
        width: 100%;
        min-height: 100vh;
    }

    /* LEFT (Slider) */
    .abp-account-layout .slider-section {
        width: 50%;
        background-color: transparent;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        direction: ltr;
        align-items: flex-start;
        z-index: 1;
        padding: 80px 40px 40px;
        overflow: visible;
        transition: width 0.5s ease, padding 0.5s ease;
    }

    .abp-account-layout .slider {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .abp-account-layout .slider-content {
        direction: rtl;
        width: 100%;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5rem;
        color: #fff;
    }

    .abp-account-layout .bg-svg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: visible;
        inset: 0;
    }

        .abp-account-layout .bg-svg svg,
        .abp-account-layout .bg-svg img {
             position:absolute;
              inset:0;
              width:100%;
              height:100%;
              display:block;
        }

    /* draggable feel */
    .abp-account-layout .slider-container {
        cursor: grab;
        touch-action: pan-y;
    }

        .abp-account-layout .slider-container.dragging {
            cursor: grabbing;
        }

    .abp-account-layout .slide {
        will-change: transform, opacity;
    }

    .abp-account-layout .slider-container.dragging,
    .abp-account-layout .slider-container.dragging * {
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
    }

        /* Prevent browser image dragging */
        .slider-container img,
        .slider-container svg {
            -webkit-user-drag: none; /* Chrome/Safari */
            pointer-events: none; /* makes drag gesture go to the slider */
        }


    .abp-account-layout .logo img {
        height: 7rem;
    }

.abp-account-layout .slider-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    text-align: center;
    height: min(450px, 52vh);
}

    .abp-account-layout .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transition: opacity 0.6s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        visibility: hidden;
    }

        .abp-account-layout .slide.active {
            opacity: 1;
            visibility: visible;
        }

        .abp-account-layout .slide h2 {
            font-size: 1.6rem;
            margin-bottom: 12px;
            line-height: 1.5;
        }

        .abp-account-layout .slide p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .abp-account-layout .slide svg,
        .abp-account-layout .slide img {
            width: 100%;
            max-width: 360px;
            height: auto;
            max-height: 34vh;
            object-fit: contain;
        }

    .abp-account-layout .dots {
        display: flex;
        gap: 12px;
        margin-top: 25px;
    }

    .abp-account-layout .dot {
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.3);
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;
        border: 0;
    }

        .abp-account-layout .dot.active {
            background: white;
            width: 40px;
            border-radius: 10px;
        }

    /* RIGHT (Form) */
    .abp-account-layout .form-section {
        width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px;
        transition: width 0.5s ease, padding 0.5s ease;
    }

    

.abp-account-layout .account-legal {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 0.8;
    text-align: center;
    position: absolute;
    bottom: 3rem;
}

    .abp-account-layout .account-legal a {
        color: var(--adah-primary);
        text-decoration: none;
        font-weight: 700;
    }

        .abp-account-layout .account-legal a:hover {
            text-decoration: underline;
        }

.abp-account-layout .slider-section,
.abp-account-layout .form-section {
    min-height: 100vh;
}

.abp-account-layout .slider-section {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.abp-account-layout .form-section {
    position: relative;
    z-index: 1;
}

.abp-account-layout .bg-svg {
    overflow: visible;
}

.abp-account-layout .account-container {
    overflow: visible;
}

.abp-account-container .card.mt-3.shadow-sm.rounded {
    border: none !IMPORTANT;
    box-shadow: none !important;
}

@media (max-width: 1100px) {
    .abp-account-layout .slider-section {
        width: 50%;
    }

    .abp-account-layout .form-section {
        width: 50%;
    }
}

@media (max-width: 850px) {
    .abp-account-layout .slider-section {
        display: none;
    }

    .abp-account-layout .form-section {
        width: 100%;
    }
}

@media (max-width: 1199.98px) {
    .abp-account-layout .slider-section {
        padding: 56px 24px 24px;
    }

    .abp-account-layout .logo img {
        height: 5.5rem;
    }
}

@media (max-width: 991.98px) {
    .abp-account-layout .slider-section {
        flex-basis: 46%;
    }

    .abp-account-layout .form-section {
        flex-basis: 54%;
    }
}

@media (max-width: 767.98px) {
    .abp-account-layout .account-container {
        flex-direction: column;
    }

    .abp-account-layout .slider-section {
        display: none;
    }
    .abp-account-layout .form-section {
        min-height: 100vh;
    }
}
