/* ========================================================
   CANASTA WEB · ALIADO COMERCIAL · LOGIN
   ======================================================== */

:root {
    --green:        #16a34a;
    --green-deep:   #15803d;
    --green-darker: #14532d;
    --green-light:  #22c55e;
    --green-soft:   #dcfce7;
    --green-mist:   #f0fdf4;

    --yellow:       #facc15;
    --yellow-deep:  #ca8a04;
    --yellow-soft:  #fef9c3;

    --tomato:       #ef4444;
    --tomato-soft:  #fee2e2;

    --cream:        #fefdf8;
    --bg-warm:      #fdfaf3;

    --ink:          #14532d;
    --ink-mid:      #3f4538;
    --ink-mute:     #6b7165;
    --ink-faint:    #9ca196;
    --border:       #e5e7d8;

    --radius:       12px;
    --radius-lg:    20px;
    --shadow-md:    0 4px 16px rgba(20, 83, 45, 0.06);
    --shadow-lg:    0 18px 40px -12px rgba(20, 83, 45, 0.18);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* ========================================================
   LADO IZQUIERDO · VISUAL
   ======================================================== */
.visual-side {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}

.visual-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoom-slow 25s ease-in-out infinite alternate;
}

@keyframes zoom-slow {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(20, 83, 45, 0.92) 0%,
            rgba(22, 163, 74, 0.85) 50%,
            rgba(20, 83, 45, 0.75) 100%);
}

/* Patrón de emojis flotantes */
.food-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.food-emoji {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 38px;
    opacity: 0.18;
    animation: floaty 8s var(--d) ease-in-out infinite;
    filter: blur(0.3px);
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg);    }
    50%      { transform: translateY(-22px) rotate(8deg); }
}

/* Header del lado visual */
.visual-header {
    position: relative;
    z-index: 3;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    animation: fadeUp 0.6s ease-out;
}

.brand-mini { display: flex; align-items: center; gap: 12px; }

.basket-mini {
    width: 38px;
    height: 38px;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.basket-mini svg { width: 100%; height: 100%; }

.basket-mini.sm { width: 36px; height: 36px; color: var(--green); background: var(--green-soft); border: none; }

.brand-mini-name {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-mini-tag {
    font-size: 11px;
    opacity: 0.75;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.status-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--yellow);
    animation: pulse-y 1.6s ease-in-out infinite;
}

@keyframes pulse-y {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* Contenido principal */
.visual-content {
    position: relative;
    z-index: 2;
    padding: 0 64px;
    max-width: 640px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.pre-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 204, 21, 0.15);
    color: var(--yellow);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    width: fit-content;
    margin-bottom: 24px;
    border: 1px solid rgba(250, 204, 21, 0.3);
    animation: fadeUp 0.7s 0.2s ease-out backwards;
}

.visual-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    animation: fadeUp 0.7s 0.35s ease-out backwards;
}

.visual-title em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--yellow) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin-bottom: 32px;
    animation: fadeUp 0.7s 0.5s ease-out backwards;
}

.visual-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeUp 0.7s 0.65s ease-out backwards;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-pill i { color: var(--yellow); }

/* Tarjetas flotantes */
.float-card {
    position: absolute;
    z-index: 3;
    background: white;
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: fadeUp 0.8s ease-out backwards, slow-float 6s ease-in-out infinite;
    min-width: 220px;
}

.card-orders {
    top: 14%;
    right: 6%;
    animation-delay: 0.7s, 1.2s;
}

.card-commission {
    bottom: 26%;
    left: 8%;
    animation-delay: 0.9s, 2s;
}

@keyframes slow-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.card-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bg-green  { background: var(--green-soft);  color: var(--green-deep); }
.bg-yellow { background: var(--yellow-soft); color: var(--yellow-deep); }

.card-info { flex: 1; }

.card-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.card-lbl {
    font-size: 11.5px;
    color: var(--ink-mute);
    margin-top: 3px;
    font-weight: 500;
}

.card-trend {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.card-trend.up { background: var(--green-soft); color: var(--green-deep); }

/* Notificación de pedido */
.order-notif {
    position: absolute;
    z-index: 3;
    bottom: 10%;
    right: 6%;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 12px;
    max-width: 280px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--green);
    animation: slide-right 1s 1.4s ease-out backwards, slow-float 7s 1.5s ease-in-out infinite;
}

@keyframes slide-right {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.notif-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-light), var(--green-deep));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.notif-body { flex: 1; min-width: 0; }

.notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.notif-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}

.notif-amount {
    font-size: 14px;
    font-weight: 800;
    color: var(--green-deep);
}

.notif-sub {
    font-size: 12px;
    color: var(--ink-mute);
    margin-bottom: 4px;
}

.notif-foot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: var(--ink-faint);
    font-weight: 600;
}

.dot-blink {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
}

.dot-blink::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* Footer del lado visual */
.visual-foot {
    position: relative;
    z-index: 2;
    padding: 20px 48px 28px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* ========================================================
   LADO DERECHO · FORMULARIO
   ======================================================== */
.form-side {
    background: var(--cream);
    background-image:
        radial-gradient(circle at top right, var(--green-mist), transparent 40%),
        radial-gradient(circle at bottom left, var(--yellow-soft), transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.form-wrap {
    width: 100%;
    max-width: 420px;
    animation: fadeUp 0.7s ease-out;
}

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

/* Mobile top brand */
.mobile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.mobile-brand-text strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.mobile-brand-text span {
    color: var(--ink-mute);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Basket hero (desktop) */
.basket-hero {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

.basket-hero svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    animation: basket-wobble 4s ease-in-out infinite;
}

@keyframes basket-wobble {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}

.basket-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, var(--green-soft) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

/* Welcome */
.welcome-area { margin-bottom: 28px; }

.hello-tag {
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.welcome-h {
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    margin: 6px 0 10px;
    line-height: 1.1;
}

.welcome-p {
    color: var(--ink-mute);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

.welcome-p strong {
    color: var(--green-deep);
    font-weight: 700;
}

/* Form */
.lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-mid);
    margin-bottom: 7px;
    display: block;
}

.field {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.field:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.field-ico {
    padding-left: 14px;
    color: var(--ink-faint);
    font-size: 16px;
    transition: color 0.25s;
}

.field:focus-within .field-ico { color: var(--green); }

.fld {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: var(--ink);
    font-size: 14.5px;
    padding: 13px 14px 13px 10px;
    font-family: inherit;
    font-weight: 500;
}

.fld:focus {
    outline: none;
    box-shadow: none !important;
}

.fld::placeholder { color: var(--ink-faint); font-weight: 400; }

.field-eye {
    padding-right: 14px;
    color: var(--ink-faint);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.25s;
}

.field-eye:hover { color: var(--green); }

.link-forgot {
    color: var(--green-deep);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: color 0.25s;
}

.link-forgot:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Checkbox */
.rem-check .form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.15rem;
}

.rem-check .form-check-input:checked {
    background-color: var(--green);
    border-color: var(--green);
}

.rem-check .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
    border-color: var(--green);
}

.rem-check .form-check-label {
    font-size: 13px;
    color: var(--ink-mute);
    cursor: pointer;
    padding-left: 4px;
    font-weight: 500;
}

/* Botón principal */
.btn-canasta {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-deep) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px 24px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -8px rgba(22, 163, 74, 0.5);
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-canasta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-canasta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(22, 163, 74, 0.55);
}

.btn-canasta:hover::before { left: 100%; }

.btn-canasta:hover i { transform: translateX(4px); }

.btn-canasta i {
    font-size: 18px;
    transition: transform 0.3s;
}

.btn-canasta:active { transform: translateY(0); }

/* Tip de ventas */
.sales-tip {
    margin-top: 22px;
    background: linear-gradient(135deg, var(--yellow-soft) 0%, #fef9c3 100%);
    border: 1px dashed #fde047;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sales-tip::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.4), transparent 70%);
    border-radius: 50%;
}

.tip-emoji {
    font-size: 32px;
    animation: tip-bounce 2.5s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@keyframes tip-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%      { transform: translateY(-4px) rotate(5deg); }
}

.tip-txt {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--yellow-deep);
    position: relative;
    z-index: 1;
}

.tip-txt strong { font-weight: 800; color: #713f12; }

/* Register line */
.register-line {
    text-align: center;
    margin-top: 22px;
    color: var(--ink-mute);
    font-size: 14px;
    font-weight: 500;
}

.register-line a {
    color: var(--green-deep);
    text-decoration: none;
    font-weight: 800;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 1px;
    transition: color 0.25s;
}

.register-line a:hover { color: var(--green); }

/* Form footer */
.form-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 36px;
    font-size: 12px;
    color: var(--ink-faint);
}

.form-foot a {
    color: var(--ink-mute);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.25s;
}

.form-foot a:hover { color: var(--green-deep); }

.ver {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.05em;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 991px) {
    .form-side {
        padding: 36px 24px;
        min-height: 100vh;
    }
    .welcome-h { font-size: 28px; }
}

@media (max-width: 576px) {
    .form-side { padding: 28px 20px; }
    .welcome-h { font-size: 24px; }
    .welcome-p { font-size: 13.5px; }
    .form-foot { flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
    .ver { margin-left: 0; }
}
