/*
 * Arma Doc — Split-Screen Auth Layout v3
 * Brand: #e8ff00, #1b2132, #0d1017, #fff
 * Layout: 50% login | 50% showcase
 */

/* ═══════════════════════════════════════════════════
   SPLIT LAYOUT
   ═══════════════════════════════════════════════════ */

.auth-split {
    display: flex;
    min-height: 100vh;
    background: #1b2132;
}

/* ─── Left Panel: Login (50%) ─── */
.auth-panel-left {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1017;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
    border-right: 1px solid rgba(232, 255, 0, 0.06);
}

.auth-panel-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    min-height: 75vh;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: #e8ff00;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1b2132;
    box-shadow: 0 0 30px rgba(232, 255, 0, 0.25);
}

.auth-logo h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    flex: 1;
}

.auth-card h2 {
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8125rem;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* SSO Buttons */
.sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-sso {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    position: relative;
}

.btn-sso span:first-of-type {
    flex: 1;
    text-align: left;
}

.btn-sso:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-sso-google:hover:not(:disabled) {
    border-color: #4285F4;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.2);
}

.btn-sso:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.badge-soon {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: rgba(232, 255, 0, 0.15);
    color: #e8ff00;
    white-space: nowrap;
    flex: none !important;
    text-align: center !important;
}

/* Footer */
.auth-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}


/* ═══════════════════════════════════════════════════
   RIGHT PANEL — ANIMATED SHOWCASE (50%)
   ═══════════════════════════════════════════════════ */

.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #1b2132;
}

.auth-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
}


/* ─── Abstract Shapes ─── */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: #e8ff00;
    top: -150px;
    right: -120px;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #e8ff00;
    bottom: -80px;
    left: -60px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 180px;
    height: 180px;
    border: 2px solid rgba(232, 255, 0, 0.15);
    background: transparent;
    top: 25%;
    left: 10%;
    animation: floatShape 18s ease-in-out infinite 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: rgba(232, 255, 0, 0.1);
    bottom: 20%;
    right: 8%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: rotateShape 25s linear infinite;
}

.shape-5 {
    width: 250px;
    height: 250px;
    border: 1px solid rgba(232, 255, 0, 0.06);
    background: transparent;
    top: 8%;
    right: 25%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-15px, 20px); }
    75% { transform: translate(25px, 15px); }
}

@keyframes rotateShape {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}


/* ─── Workflow Scene ─── */
.workflow-scene {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 560px;
}


/* ─── Step Indicators with Labels ─── */
.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 70px;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.5s cubic-bezier(.4,0,.2,1);
}

.step-icon.active {
    background: #e8ff00;
    border-color: #e8ff00;
    color: #1b2132;
    box-shadow: 0 0 24px rgba(232, 255, 0, 0.4);
    transform: scale(1.1);
}

.step-icon.done {
    background: rgba(232, 255, 0, 0.15);
    border-color: #e8ff00;
    color: #e8ff00;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.4s ease;
}

.step-item.current .step-label {
    color: #e8ff00;
}

.step-item.completed .step-label {
    color: rgba(232, 255, 0, 0.6);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    margin-top: 22px;
    flex-shrink: 0;
}

.step-connector-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #e8ff00;
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

.step-connector.filled .step-connector-fill {
    width: 100%;
}


/* ─── Document Card (larger) ─── */
.doc-card {
    width: 340px;
    background: #1b2132;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.6s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.doc-card.uploading {
    border-color: rgba(66, 133, 244, 0.4);
    box-shadow: 0 24px 64px rgba(66, 133, 244, 0.12);
}

.doc-card.processing {
    border-color: rgba(232, 255, 0, 0.4);
    box-shadow: 0 24px 64px rgba(232, 255, 0, 0.08);
    animation: pulse-glow 2s ease-in-out infinite;
}

.doc-card.downloading {
    border-color: rgba(40, 167, 69, 0.4);
    box-shadow: 0 24px 64px rgba(40, 167, 69, 0.12);
}

.doc-card.shredding {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 24px 64px rgba(220, 53, 69, 0.12);
    animation: shred 1s ease-in-out forwards;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 24px 64px rgba(232, 255, 0, 0.08); }
    50% { box-shadow: 0 24px 80px rgba(232, 255, 0, 0.18); }
}

@keyframes shred {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    20% { transform: scale(0.97) rotate(-0.5deg); }
    60% { transform: scale(0.85) rotate(1.5deg); opacity: 0.5; }
    100% { transform: scale(0.6) rotate(3deg); opacity: 0; filter: blur(6px); }
}

.doc-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-card-header i {
    font-size: 1.6rem;
    color: #dc3545;
}

.doc-card-header span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

.doc-card-size {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 400 !important;
    font-size: 0.75rem !important;
}

.doc-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-card-lines {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.doc-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.doc-card.processing .doc-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 255, 0, 0.25), transparent);
    animation: scan-line 1.5s ease-in-out infinite;
}

@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Progress bar inside card */
.doc-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doc-progress-bar.visible {
    opacity: 1;
}

.doc-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: #4285F4;
    transition: width 2s linear, background 0.4s ease;
}

.doc-progress-fill.uploading { background: #4285F4; }
.doc-progress-fill.processing { background: #e8ff00; }
.doc-progress-fill.downloading { background: #28a745; }
.doc-progress-fill.shredding { background: #dc3545; }

/* Status text inside card */
.doc-status-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    min-height: 1rem;
    transition: color 0.3s ease;
}


/* Badge (status icon) */
.doc-card-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    background: #4285F4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
}

.doc-card-badge.upload  { background: #4285F4; box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4); }
.doc-card-badge.process { background: #e8ff00; color: #1b2132; box-shadow: 0 4px 16px rgba(232, 255, 0, 0.4); }
.doc-card-badge.download { background: #28a745; box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4); }
.doc-card-badge.shred   { background: #dc3545; box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4); }


/* Workflow label */
.workflow-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.6rem 1.5rem;
    transition: all 0.4s ease;
}

.workflow-label i {
    color: #e8ff00;
    font-size: 0.875rem;
}

.workflow-label-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-weight: 500;
}


/* ─── Feature Pills ─── */
.showcase-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(232, 255, 0, 0.04);
    border: 1px solid rgba(232, 255, 0, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.feature-pill i {
    color: #e8ff00;
    font-size: 0.75rem;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .auth-panel-right {
        display: none;
    }

    .auth-panel-left {
        flex: 1;
        max-width: none;
        background: #0d1017;
        border-right: none;
    }
}

@media (max-width: 520px) {
    .auth-panel-left {
        padding: 1.25rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }
}
