/* ========================================================
   VERDÉ · PRODUCTOS NATURALES · LOGIN
   ======================================================== */

:root {
    /* Paleta inspirada en botánica */
    --sage:       #a3c293;
    --sage-soft:  #d4e4c9;
    --moss:       #6b8e5a;
    --forest:     #3d6b3d;
    --forest-deep:#264026;
    --cream:      #faf7f0;
    --cream-warm: #f4ecd8;
    --beige:      #e8dfc8;
    --ochre:      #c9a96e;
    --terracotta: #c97b5d;

    --ink:        #2d3e2d;
    --ink-soft:   #4a5d4a;
    --ink-mute:   #7a8b7a;
    --ink-faint:  #a8b5a8;
    --border:     #d8dbcc;

    --radius:     14px;
    --radius-lg:  24px;
    --radius-xl:  32px;

    --shadow-sm:  0 2px 8px rgba(61, 107, 61, 0.06);
    --shadow-md:  0 8px 24px rgba(61, 107, 61, 0.1);
    --shadow-lg:  0 24px 60px -16px rgba(61, 107, 61, 0.25);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--cream);
    background-image:
        radial-gradient(ellipse at top left, rgba(163, 194, 147, 0.25), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(201, 169, 110, 0.18), transparent 50%);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding: 24px 0;
    position: relative;
}

.serif { font-family: 'DM Serif Display', serif; }

/* ========================================================
   FONDO · HOJAS DECORATIVAS GLOBALES
   ======================================================== */
.leaves-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.leaf {
    position: absolute;
    opacity: 0.08;
    color: var(--forest);
    animation: leaf-sway 12s ease-in-out infinite;
}

.leaf-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -80px;
    transform: rotate(-30deg);
    color: var(--moss);
}

.leaf-2 {
    width: 220px;
    height: 220px;
    top: 50%;
    right: -60px;
    transform: rotate(45deg);
    color: var(--sage);
    animation-delay: 2s;
    animation-duration: 14s;
}

.leaf-3 {
    width: 320px;
    height: 160px;
    bottom: 10%;
    left: -40px;
    transform: rotate(-15deg);
    color: var(--forest);
    animation-delay: 1s;
    animation-duration: 16s;
    opacity: 0.1;
}

.leaf-4 {
    width: 160px;
    height: 160px;
    top: 20%;
    right: 35%;
    transform: rotate(60deg);
    color: var(--ochre);
    animation-delay: 3s;
    opacity: 0.07;
}

.leaf-5 {
    width: 280px;
    height: 140px;
    top: 5%;
    right: 12%;
    transform: rotate(20deg);
    color: var(--moss);
    animation-delay: 4s;
    opacity: 0.09;
}

@keyframes leaf-sway {
    0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50%      { transform: rotate(calc(var(--rot, 0deg) + 5deg)) translateY(-15px); }
}

.leaf-1 { --rot: -30deg; }
.leaf-2 { --rot: 45deg; }
.leaf-3 { --rot: -15deg; }
.leaf-4 { --rot: 60deg; }
.leaf-5 { --rot: 20deg; }

/* Blobs orgánicos */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: blob-drift 20s ease-in-out infinite;
}

.blob-a {
    width: 400px;
    height: 400px;
    background: var(--sage);
    top: 10%;
    left: 30%;
}

.blob-b {
    width: 350px;
    height: 350px;
    background: var(--ochre);
    bottom: 5%;
    right: 25%;
    animation-delay: 4s;
    opacity: 0.2;
}

@keyframes blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.05); }
    66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* ========================================================
   TARJETA PRINCIPAL
   ======================================================== */
.login-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: card-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes card-rise {
    0%   { opacity: 0; transform: translateY(40px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================================
   LADO IZQUIERDO · BRAND SIDE
   ======================================================== */
.brand-side {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    color: white;
}

.brand-image {
    position: absolute;
    inset: 0;
    background-image: url('https://muvocbd.mx/mioficina/productos/producto_1706880568.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: img-zoom 30s ease-in-out infinite alternate;
}

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

.brand-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(38, 64, 38, 0.85) 0%, rgba(61, 107, 61, 0.75) 50%, rgba(107, 142, 90, 0.5) 100%);
}

/* Mini hojas dentro del panel */
.mini-leaf {
    position: absolute;
    z-index: 2;
    color: rgba(255, 255, 255, 0.12);
}

.ml-1 {
    width: 160px;
    height: 160px;
    top: -30px;
    right: -30px;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.ml-2 {
    width: 120px;
    height: 120px;
    bottom: 60px;
    left: -20px;
    transform: rotate(-30deg);
    animation: spin-slow 30s linear infinite reverse;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.brand-content {
    position: relative;
    z-index: 3;
    padding: 48px 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 720px;
}

/* Logo */
.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fade-up 0.7s 0.2s ease-out backwards;
}

.logo-mark {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50%      { transform: scale(1.05) rotate(2deg); }
}

.logo-mark svg { width: 100%; height: 100%; }

.logo-mark.sm {
    width: 40px;
    height: 40px;
    background: var(--cream);
    box-shadow: none;
}

.logo-name {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.01em;
    font-style: italic;
}

.logo-tag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 4px;
}

/* Brand quote */
.brand-quote {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0;
    animation: fade-up 0.8s 0.4s ease-out backwards;
}

.quote-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sage-soft);
    margin-bottom: 24px;
}

.dash {
    width: 32px;
    height: 1.5px;
    background: var(--sage-soft);
}

.brand-h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: white;
}

.brand-h1 em {
    font-style: italic;
    color: var(--sage-soft);
    position: relative;
}

.brand-h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(163, 194, 147, 0.25);
    z-index: -1;
    border-radius: 999px;
}

.brand-p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 420px;
    margin: 0;
}

/* Seals */
.seals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    animation: fade-up 0.8s 0.6s ease-out backwards;
}

.seal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.3s;
}

.seal i {
    color: var(--sage-soft);
    font-size: 13px;
}

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

/* Featured product floating */
.featured-product {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: white;
    color: var(--ink);
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
    animation: fade-up 1s 0.9s ease-out backwards, float-prod 5s ease-in-out 1s infinite;
    max-width: 240px;
    z-index: 4;
}

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

.product-img {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--sage-soft), var(--sage));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    animation: leaf-grow 3s ease-in-out infinite;
}

@keyframes leaf-grow {
    0%, 100% { transform: scale(1) rotate(-5deg); }
    50%      { transform: scale(1.08) rotate(5deg); }
}

.product-cat {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--moss);
    font-weight: 600;
    margin-bottom: 2px;
}

.product-name {
    font-family: 'DM Serif Display', serif;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 2px;
    line-height: 1.1;
}

.product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--forest);
}

/* ========================================================
   LADO DERECHO · FORMULARIO
   ======================================================== */
.form-side {
    background: var(--cream);
    background-image:
        radial-gradient(circle at top right, rgba(163, 194, 147, 0.15), transparent 50%);
    padding: 48px 44px;
    display: flex;
    align-items: center;
    position: relative;
}

.form-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.mobile-logo strong {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--forest);
    display: block;
    line-height: 1;
}

.mobile-logo span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* Welcome */
.welcome { margin-bottom: 32px; animation: fade-up 0.7s 0.3s ease-out backwards; }

.welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-soft);
    color: var(--forest);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.welcome-tag i { font-size: 13px; }

.welcome-title {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 10px;
}

.welcome-title em {
    font-style: italic;
    color: var(--forest);
    position: relative;
}

.welcome-title em::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--sage-soft);
    z-index: -1;
    border-radius: 999px;
    opacity: 0.6;
}

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

/* Form */
.natural-form { animation: fade-up 0.7s 0.4s ease-out backwards; }

.lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
    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.3s ease;
    overflow: hidden;
}

.field::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sage), var(--forest));
    transition: width 0.4s ease;
}

.field:focus-within {
    border-color: var(--moss);
    background: white;
    box-shadow: 0 0 0 4px rgba(107, 142, 90, 0.12);
}

.field:focus-within::before { width: 90%; }

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

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

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

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

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

/* Hoja decorativa al hacer focus */
.field-leaf {
    padding-right: 14px;
    color: var(--sage);
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: rotate(-30deg) scale(0.5);
}

.field-leaf svg { width: 100%; height: 100%; }

.field:focus-within .field-leaf {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    animation: leaf-sway 2s ease-in-out infinite;
}

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

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

.forgot {
    color: var(--forest);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.forgot::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest);
    transition: width 0.3s;
}

.forgot:hover::after { width: 100%; }

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

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

.check-natural .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(61, 107, 61, 0.15);
    border-color: var(--forest);
}

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

/* Botón principal */
.btn-natural {
    background: linear-gradient(135deg, var(--moss) 0%, var(--forest) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 15px 24px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -8px rgba(61, 107, 61, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 0.01em;
}

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

.btn-natural:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(61, 107, 61, 0.5);
}

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

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

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.btn-icon svg { width: 100%; height: 100%; }

.btn-natural:hover .btn-icon { transform: translateX(4px); }

/* Divider con hoja */
.divider-leaf {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 20px;
}

.line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.div-leaf {
    width: 18px;
    height: 18px;
    color: var(--sage);
    animation: leaf-spin 4s ease-in-out infinite;
}

@keyframes leaf-spin {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(20deg); }
}

/* Social buttons */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--ink);
    padding: 11px 16px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-social i { font-size: 16px; }

.btn-social:hover {
    border-color: var(--moss);
    background: var(--sage-soft);
    transform: translateY(-2px);
    color: var(--forest-deep);
}

/* Signup line */
.signup-line {
    text-align: center;
    margin: 0;
    color: var(--ink-mute);
    font-size: 14px;
}

.signup-line a {
    color: var(--forest);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1.5px solid var(--sage);
    padding-bottom: 1px;
    transition: color 0.3s;
}

.signup-line a:hover { color: var(--moss); }

/* Form bottom */
.form-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--ink-faint);
}

.bottom-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bottom-msg i { color: var(--moss); font-size: 13px; }

.bottom-version {
    font-family: 'Inter', monospace;
    letter-spacing: 0.05em;
}

/* ========================================================
   ANIMACIÓN GENERAL
   ======================================================== */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 991px) {
    body { padding: 0; }

    .login-card {
        border-radius: 0;
        min-height: 100vh;
    }

    .brand-side {
        min-height: 320px;
    }

    .brand-content {
        padding: 32px 28px;
        min-height: 320px;
    }

    .brand-h1 { font-size: 32px; }
    .brand-p  { font-size: 14px; }
    .featured-product { display: none; }
    .seals { margin-bottom: 0; }

    .form-side { padding: 36px 28px; }
}

@media (max-width: 576px) {
    .welcome-title { font-size: 32px; }
    .brand-content { padding: 24px 20px; min-height: 280px; }
    .form-side { padding: 28px 20px; }
    .social-row { grid-template-columns: 1fr; }
    .form-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
    .seals { display: none; }
}
