/* Index Page CSS - Clean styling for landing page */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Neutral background as requested (removed purple) */
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
    min-height: 100vh;
    height: 100%;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Main content container */
.index-page-content {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Centered Glass Split Hero */
.center-hero {
    width: 100%;
    max-width: none; /* allow full-width usage */
    padding: 0; /* remove horizontal padding so panels reach edges */
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    align-items: stretch;
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    align-items: stretch;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
} 

.visual-panel {
    background: linear-gradient(180deg, rgba(30,24,25,0.95) 0%, rgba(14,10,11,0.9) 100%);
    color: #fff;
    padding: 0; /* remove padding so image reaches edges */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* overlay to help text readability */
.visual-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,6,6,0.28), rgba(6,6,6,0.36));
    z-index: 1;
}

.visual-inner {
    width: 100%;
    max-width: none;
    padding: 48px 36px 48px 36px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 8px;
} 

.visual-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: auto;
}

.visual-heading {
    font-size: 48px;
    line-height: 1.02;
    margin: 0 0 8px 0;
    color: #ffffff;
    font-weight: 700;
}

.visual-sub {
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-weight: 600;
}

/* Image covers entire left panel as background */
.visual-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 0;
    border-radius: 0;
}

/* Ensure signin panel stretches full height and centers content */
.signin-panel { display: flex; align-items: center; justify-content: center; height: 100%; }

@media (max-width: 900px) {
    /* stack panels vertically but keep full viewport height with proportional heights */
    .split-panel { grid-template-columns: 1fr; height: 100vh; grid-auto-rows: 1fr 1fr; overflow: auto; }
    .visual-panel { padding: 20px 16px; height: 55vh; }
    .visual-image { 
        position: absolute; 
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        transform: none;
    }
    /* Allow signin panel to grow/scroll on small screens so controls don't get clipped */
    .signin-panel { padding: 16px 12px; min-height: 45vh; overflow-y: auto; }
    .visual-heading { font-size: 28px; text-align: left; }
    .visual-sub { font-size: 14px; }
    .visual-brand { justify-content: center; }

    /* Make login card compact and vertically centered */
    .signin-content { padding: 6px; }
    .login-card { padding: 1rem; }
    .login-title { font-size: 20px; }
    .login-subtitle { font-size: 13px; }
    .form-control { padding: 0.5rem 0.75rem; font-size: 0.95rem; }
}

.signin-panel {
    background: #ffffff;
    padding: 24px 24px; /* reduced padding so content fits */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.signin-content {
    width: 100%;
    max-width: 380px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
} 

/* Adjust login card to look like a clean white panel */
.login-card {
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: #222;
}

.login-title { color: #222; font-size: 28px; margin-bottom: 6px; }
.login-subtitle { color: #6c757d; margin-bottom: 16px; }

/* Particle background - keep as before */
.particles {
    display: none !important; /* Hidden as requested (disable animated particles) */
} 

.particle {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
    filter: blur(16px);
    opacity: 0.55;
    transform: translate3d(0,0,0);
    animation: drift 12s linear infinite;
}

/* Keep previous particle positions */
.particle.p1 { left: 6%; top: 18%; animation-duration: 14s; }
.particle.p2 { right: 10%; top: 12%; animation-duration: 10s; animation-delay: 2s; }
.particle.p3 { left: 20%; bottom: 6%; animation-duration: 16s; animation-delay: 1s; }
.particle.p4 { right: 22%; bottom: 18%; animation-duration: 12s; animation-delay: 3s; }
.particle.p5 { left: 40%; top: -6%; width: 220px; height: 220px; opacity: 0.35; animation-duration: 24s; }
.particle.p6 { right: 40%; top: -4%; width: 160px; height: 160px; opacity: 0.28; animation-duration: 20s; }
.particle.p7 { left: 70%; top: 30%; width: 120px; height: 120px; opacity: 0.4; animation-duration: 18s; }
.particle.p8 { right: 6%; top: 40%; width: 180px; height: 180px; opacity: 0.22; animation-duration: 22s; }

@keyframes drift {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-36px) translateX(18px) scale(1.02); }
    100% { transform: translateY(0px) translateX(0px) scale(1); }
}

/* All animations/transitions disabled per user request */
/* User asked for a static screen with no animations.
   Note: `.visual-image` is excluded from this global rule so it can be scaled to cover the panel. */
.split-panel, .visual-panel, .login-card, .btn, .feature-item, .shape, .hero-content, .glass-panel { 
    animation: none !important;
    transition: none !important;
    /* intentionally do not force `transform: none` here so `.visual-image` can use a static scale */
}

/* Respect reduced motion setting as well */
@media (prefers-reduced-motion: reduce) {
    .particle, .glass-panel, .login-card, .hero-content, .feature-item, .visual-image { animation: none !important; transition: none !important; }
}

/* Responsive stack for small screens */
@media (max-width: 900px) {
    .split-panel { grid-template-columns: 1fr; }
    .visual-panel { padding: 28px 20px; }
    .visual-image { width: 100%; max-width: 100%; }
    .signin-panel { padding: 28px 18px; }
    .visual-heading { font-size: 28px; text-align: center; }
    .visual-brand { justify-content: center; }
}

/* Features area removed - kept hidden so change is reversible */
.features-row { display: none !important; }

/* Previous feature styling (kept for reference)
.features-row .features-section {
    background: rgba(255,255,255,0.02);
    padding: 1rem 1.2rem;
    border-radius: 12px;
}

.features-row .feature-title, .features-row .feature-description { color: rgba(255,255,255,0.92); }
*/



/* Floating background shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Brand logo section */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.rocket-icon {
    width: 64px;
    height: 64px;
    margin-right: 1rem;
    /* Keep a light drop shadow for contrast */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    border-radius: 8px;
}

/* Icon wrapper to make ICO visible on dark gradient */
.icon-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.brand-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.brand-subtitle {
    font-size: 1.5rem;
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-weight: bold;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Hero description */
.hero-description {
    font-size: 1.2rem;
    margin: 2rem 0;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
} 

/* Login card (static - compact for small viewports) */
.login-card {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    border-radius: 12px;
    padding: 1.5rem; /* reduced padding */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: #333;
    position: relative;
    z-index: 3;
    opacity: 1;
    transform: none;
    animation: none;
    animation-delay: 0;
    transition: none;
}

/* Hover lift removed to keep static appearance */
.login-card:hover { transform: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); } 

/* Hero content animation */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp 700ms ease forwards;
    animation-delay: 0.15s;
} 

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

/* Form styling */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: #aaa;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Form check (checkbox) */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

.form-check-label {
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Button styling - IMPORTANT: Ensure buttons are clickable */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 10;
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn:focus-visible {
    outline: 3px solid rgba(102,126,234,0.25);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.08);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

/* Feature items fade-in */
.feature-item {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp 800ms ease forwards;
    animation-delay: 0.45s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Ensure buttons are not blocked by overlays */
.btn:not(:disabled):not(.disabled) {
    pointer-events: auto;
    cursor: pointer;
}

/* Alert styling */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    position: relative;
    z-index: 5;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Features section */
.features-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 15px;
    color: white;
}

.feature-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #000000;
}

.feature-description {
    font-size: 0.95rem;
    color: #000000;
    font-weight: bold;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d !important;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.small {
    font-size: 0.875rem;
}

/* Row and column grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Container */
.container {
    width: 100%;
    max-width: 100vw;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.align-items-center {
    align-items: center !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }

    .rocket-icon {
        width: 60px;
        height: 60px;
    }

    .login-card {
        margin: 1rem;
        padding: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .col-md-4,
    .col-lg-5,
    .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .index-page-content {
        padding: 1rem 0;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVENESS ===== */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .brand-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .login-card {
        max-width: 450px;
        padding: 3rem;
    }

    .feature-item {
        padding: 2rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .brand-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.3rem;
    }

    .login-card {
        max-width: 400px;
        padding: 2.5rem;
        margin: 2rem auto;
    }

    .rocket-icon {
        width: 70px;
        height: 70px;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .brand-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1.1rem;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .login-card h2 {
        font-size: 1.8rem;
    }

    .rocket-icon {
        width: 55px;
        height: 55px;
    }

    .feature-item {
        padding: 1.2rem;
        text-align: center;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .index-page-content {
        padding: 1rem 0;
    }

    .floating-shapes .shape {
        display: none; /* Hide floating shapes on small screens for performance */
    }
}

/* Extra small screens (below 576px) */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }

    .brand-title {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
        max-width: 95%;
        margin: 0 auto 1.5rem;
    }

    .login-card {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .login-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 48px; /* Android touch target */
    }

    .rocket-icon {
        width: 50px;
        height: 50px;
    }

    .feature-item {
        padding: 1rem 0.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .feature-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .index-page-content {
        padding: 0.5rem 0;
    }

    .floating-shapes {
        display: none; /* Hide all floating shapes on very small screens */
    }

    /* Touch-friendly form elements */
    input[type="text"], input[type="password"], input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        min-height: 48px;
    }
}

/* Touch-friendly interactions for mobile */
@media (max-width: 767px) {
    .btn, .feature-item, .login-card {
        transition: transform 0.1s ease;
    }

    .btn:active, .feature-item:active {
        transform: scale(0.98);
    }

    .login-card {
        cursor: default; /* Prevent cursor on touch devices */
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .index-page-content {
        min-height: auto;
        padding: 1rem 0;
    }

    .brand-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .login-card {
        padding: 1rem;
        margin: 0.5rem;
    }

    .floating-shapes {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rocket-icon, .shape {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .login-card, .feature-item {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-card, .feature-item {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .shape, .feature-item, .btn {
        animation: none !important;
    }

    .btn, .feature-item, .login-card {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }

    .index-page-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .login-card, .feature-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .floating-shapes {
        display: none;
    }
}

/* Debug box styling */
.alert h6 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Animation for feature items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Rocket pulse animation for navigation logo */
.rocket-pulse {
    animation: rocketPulse 2s ease-in-out infinite;
}

@keyframes rocketPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* User avatar styling */
.user-avatar img {
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.user-avatar img:hover {
    border-color: rgba(255, 255, 255, 1);
}

.user-avatar .bg-primary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: bold;
}

/* Dropdown button styling */
.dropdown-toggle {
    cursor: pointer !important;
    transition: opacity 0.3s ease;
}

.dropdown-toggle:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.dropdown-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 8px;
    z-index: 1050;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 16px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 16px;
}