/* ============================================================
   owner-login.css — DukaSmart · Owner Login Page
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:        #0f172a;
    --navy-deep:   #080e1c;
    --navy-mid:    #1a2744;
    --blue:        #3b5bdb;
    --blue-light:  #4c6ef5;
    --blue-hover:  #2f4abf;
    --gold:        #f59e0b;
    --gold-light:  #fbbf24;
    --accent:      #60a5fa;
    --red:         #ef4444;
    --green:       #10b981;
    --gray-50:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
    --gray-400:    #94a3b8;
    --gray-500:    #64748b;
    --gray-600:    #475569;
    --gray-800:    #1e293b;
    --white:       #ffffff;
    --transition:  0.22s ease;
    --radius-sm:   10px;
    --radius-md:   16px;
    --radius-lg:   22px;
    --shadow-card: 0 24px 56px rgba(0, 0, 0, 0.14);
}

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--gray-50);
}

/* =====================================================
   CONTAINER — Full Split Screen (no wrapper)
   ===================================================== */
.auth-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
}

/* =====================================================
   LEFT PANEL — Owner Brand
   ===================================================== */
.auth-left {
    position: relative;
    background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 50px;
}

/* Glow layers */
.overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 80%, rgba(59, 91, 219, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 380px;
    width: 100%;
}

/* Logo */
.brand-content .logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 26px;
    display: block;
}

/* Hero title */
.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.hero-title span {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* Tagline */
.tagline {
    font-size: 0.9rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
}

/* Feature pills */
.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.feature-item {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    backdrop-filter: blur(6px);
    transition: background var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Floating stat cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--white);
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.floating-card p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
    font-weight: 400;
}

.floating-card strong {
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

.floating-card.sales {
    bottom: 15%;
    left: 6%;
    animation: floatA 5s ease-in-out infinite alternate;
}

.floating-card.stock {
    top: 15%;
    right: 6%;
    animation: floatB 6s ease-in-out infinite alternate;
}

.floating-card.sales strong { color: var(--gold-light); }
.floating-card.stock strong  { color: #f87171; }

@keyframes floatA {
    from { transform: translateY(0px);   }
    to   { transform: translateY(-10px); }
}

@keyframes floatB {
    from { transform: translateY(-8px);  }
    to   { transform: translateY(4px);  }
}

/* =====================================================
   RIGHT PANEL — Form
   ===================================================== */
.auth-right {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
}

/* Subtle top stripe */
.auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.form-card {
    width: 100%;
    max-width: 380px;
    animation: slideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.form-header {
    margin-bottom: 28px;
}

.form-header h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.form-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Form Groups */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

/* Input with icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
    transition: color var(--transition);
}

.input-group input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

.input-group:focus-within i {
    color: var(--blue);
}

/* Primary Button */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--white);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 91, 219, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Flash Messages */
.flash-container {
    margin-bottom: 18px;
}

.flash-message {
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
}

.flash-message.error   { background: #fef2f2; color: #991b1b; border-left-color: var(--red); }
.flash-message.success { background: #f0fdf4; color: #065f46; border-left-color: var(--green); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-left {
        min-height: 300px;
        padding: 40px 32px;
    }

    .brand-content {
        max-width: 100%;
        text-align: center;
    }

    .brand-content .logo {
        margin: 0 auto 20px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 0;
    }

    .feature-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .floating-card {
        display: none;
    }

    .auth-right {
        padding: 40px 28px;
    }

    .auth-right::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-left {
        min-height: 220px;
        padding: 28px 20px;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .features {
        gap: 6px;
    }

    .auth-right {
        padding: 28px 20px;
    }

    .form-card {
        max-width: 100%;
    }
}