:root {
    --primary: #1e293b;
    --primary-soft: #f1f5f9;
    --primary-hover: #0f172a;
    --bg-main: #fcfcfc;
    --bg-visual: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: var(--bg-visual);
}

/* Left Panel */
.left-panel {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 1;
    overflow: hidden;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.gauge-chart {
    width: 100%;
    height: 100%;
}

.visual-content {
    text-align: center;
    margin-top: 5px;
}

.visual-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -2px;
    color: var(--text-main);
    text-transform: uppercase;
}

.visual-content h1 span {
    font-weight: 400;
    color: #94a3b8;
    /* Professional Slate-400 Gray */
}

.visual-content p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Feature Hub Section */
.visual-hub {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-hub .gauge-wrapper {
    position: relative;
    width: 340px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

/* Feature Pills Section */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin-top: 20px;
}

.pill-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very thin base border */
    padding: 18px 25px;
    /* Further enlarged padding */
    border-radius: 28px;
    /* Slightly more rounded */
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    animation: pillFadeIn 0.8s forwards;
    width: 260px;
    /* Further enlarged width */
    min-height: 92px;
    /* Fixed minimum height to match Stok Kontrolü */
    box-sizing: border-box;
    z-index: 3;
    overflow: visible;
    /* Changed from hidden to allow glow seeds */
}

/* New: SVG Border Beam - Following the exact path */
.border-beam-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.border-beam-rect {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    x: 1px;
    y: 1px;
    rx: 28px;
    /* Matching border-radius */
    fill: none;
    stroke: rgba(30, 41, 59, 1);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100 800;
    /* Length of the beam, gap */
    stroke-dashoffset: 0;
    animation: beamTrace 4s linear infinite;
    filter: drop-shadow(0 0 3px rgba(30, 41, 59, 0.5));
}

@keyframes beamTrace {
    0% {
        stroke-dashoffset: 900;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.pill-card:hover .border-beam-rect {
    stroke-width: 3;
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px rgba(30, 41, 59, 0.8));
    animation-duration: 2s;
}

/* Precise Positioning - Slightly adjusted for larger size */
.pill-card.pos-tl {
    top: 30px;
    left: -60px;
    animation-delay: 0.1s;
}

.pill-card.pos-tr {
    top: 30px;
    right: -60px;
    animation-delay: 0.2s;
}

.pill-card.pos-bl {
    top: auto;
    bottom: 30px;
    left: -60px;
    right: auto;
    animation-delay: 0.3s;
}

.pill-card.pos-br {
    top: auto;
    bottom: 30px;
    right: -60px;
    left: auto;
    animation-delay: 0.4s;
}

.pill-card i {
    color: var(--primary);
    font-size: 20px;
    /* Slightly larger */
    background: var(--primary-soft);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.pill-content {
    display: flex;
    flex-direction: column;
}

.pill-content strong {
    font-size: 15px;
    /* Increased from 13px */
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
    letter-spacing: -0.4px;
}

.pill-content span {
    font-size: 12.5px;
    /* Increased from 11px */
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.pill-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

@keyframes pillFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Staggered Animations for Pills */
.pill-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pill-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pill-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pill-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Right Panel */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Changed from flex-end to center */
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    max-height: 98vh;
    /* Maximum height constraint */
    background: var(--white);
    padding: 30px 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
    /* Handle overflow within card */
}

/* Scrollbar styling for long forms */
.login-card::-webkit-scrollbar {
    width: 4px;
}

.login-card::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
}

.brand-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-section p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: none;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 48px;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -5px;
    margin-bottom: 15px;
}

.form-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 18px;
    text-decoration: none;
    /* Removed underline */
    transition: all 0.2s;
}

/* Recovery Visual (Forgot Password) */
.recovery-hub {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.glass-box-container {
    position: relative;
    width: 260px;
    height: 260px;
    transform-style: preserve-3d;
    animation: recoveryFloat 6s ease-in-out infinite;
}

.glass-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.1);
    transform: rotateX(20deg) rotateY(-20deg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    animation: textGlow 3s ease-in-out infinite;
    user-select: none;
}

.glass-logo-text span {
    font-weight: 400;
    margin-left: 2px;
}

@keyframes textGlow {

    0%,
    100% {
        opacity: 0.8;
        filter: drop-shadow(0 0 5px rgba(30, 41, 59, 0.2));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(30, 41, 59, 0.5));
        transform: scale(1.02);
    }
}

.floating-key {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 80px;
    color: var(--primary);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    animation: keyHover 4s ease-in-out infinite;
    z-index: 5;
}

.floating-mail {
    position: absolute;
    bottom: 20px;
    left: -30px;
    font-size: 60px;
    color: #94a3b8;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
    animation: mailHover 5s ease-in-out infinite;
    z-index: 4;
}

@keyframes recoveryFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes keyHover {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-15px) rotate(15deg) scale(1.1);
    }
}

@keyframes mailHover {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10px, -10px) rotate(-10deg);
    }
}

/* Terms and Footer */
.terms-privacy {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 20px;
    line-height: 1.4;
}

.back-home-wrapper {
    text-align: center;
    margin-top: 15px;
}

.back-home-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #f1f5f9;
    /* Permanent gray background */
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.back-home-link:hover {
    color: var(--text-main);
    background: #e2e8f0;
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.footer-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-main);
}

.footer-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.alert {
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 15px;
    display: none;
    align-items: center;
    gap: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Background Analysis Charts */
.background-charts {
    position: absolute;
    inset: -50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.chart-bar {
    width: 30px;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.05), rgba(30, 41, 59, 0.15));
    border-radius: 10px 10px 0 0;
    animation: barRise 4s ease-in-out infinite alternate;
}

@keyframes barRise {
    from {
        height: 40px;
        opacity: 0.3;
    }

    to {
        height: 200px;
        opacity: 0.8;
    }
}

.register-hub {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.phone-container {
    position: relative;
    width: 200px;
    height: 400px;
    transform-style: preserve-3d;
    animation: phoneFloat 8s ease-in-out infinite;
}

.glass-phone {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.15);
    /* Increased from 0.05 */
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 44px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    transform: rotateY(-18deg) rotateX(12deg);
}

.phone-screen {
    position: absolute;
    inset: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-ui-layer {
    position: absolute;
    width: 160px;
    height: 100px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 26px;
    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.12),
        inset 0 0 15px rgba(255, 255, 255, 0.25);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.floating-ui-layer i {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.floating-ui-layer span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.floating-ui-layer small {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.layer-1 {
    top: 60px;
    right: -70px;
    animation: layerFloat1 10s ease-in-out infinite;
}

.layer-2 {
    bottom: 80px;
    left: -70px;
    animation: layerFloat2 10s ease-in-out infinite;
}

/* UI Mockup inside Phone Screen */
.screen-mockup {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mock-header {
    height: 10px;
    width: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 10px;
}

.mock-profile {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 5px;
}

.mock-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mock-line.short {
    width: 60%;
}

.mock-line.long {
    width: 90%;
}

.mock-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.mock-stat-box {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.interaction-point {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes pulseTouch {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-18deg) rotateX(12deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-12deg) rotateX(8deg);
    }
}

@keyframes layerFloat1 {

    0%,
    100% {
        transform: translate(0, 0) translateZ(50px);
    }

    50% {
        transform: translate(10px, -15px) translateZ(80px);
    }
}

@keyframes layerFloat2 {

    0%,
    100% {
        transform: translate(0, 0) translateZ(30px);
    }

    50% {
        transform: translate(-15px, 10px) translateZ(60px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        justify-content: center;
        padding: 10px;
    }

    .login-card {
        height: auto;
        padding: 30px 20px;
        border-radius: 24px;
        max-height: 98vh;
    }

    body {
        overflow: auto;
    }
}
/* ─── Customer Query Button ─── */
.customer-query-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.customer-query-divider::before,
.customer-query-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-card a.btn-customer-query {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    background: #f8fafc !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
    cursor: pointer;
    margin-bottom: 4px;
}

.login-card a.btn-customer-query:hover {
    background: var(--primary-soft) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    text-decoration: none !important;
    color: var(--text-main) !important;
}

.login-card a.btn-customer-query .cq-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-card a.btn-customer-query .cq-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.login-card a.btn-customer-query .cq-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

.login-card a.btn-customer-query .cq-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.login-card a.btn-customer-query .cq-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.login-card a.btn-customer-query:hover .cq-arrow {
    transform: translateX(3px);
    color: var(--primary);
}
