/* ============================================================
   EXPRESS INVESTMENTS — MAIN.CSS
   Auth page · Green + White + Light Blue
   Mobile-first · Self-contained
   ============================================================ */

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

/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */
:root {
    /* Surfaces — light blue tint */
    --pulse-bg:        #EAF4FB;
    --pulse-surface:   #FFFFFF;
    --pulse-surface-2: #F2F8FD;
    --pulse-border:    #DCEAF5;
    --pulse-border-2:  #B9D5E8;

    /* Text */
    --pulse-text:      #0B2545;
    --pulse-text-2:    #33506E;
    --pulse-muted:     #64809B;
    --pulse-dim:       #9BB0C4;

    /* Brand — emerald + mint (green + light blue) */
    --pulse-amber:      #0E7C66;
    --pulse-amber-2:    #0A6553;
    --pulse-amber-soft: rgba(14, 124, 102, 0.10);
    --pulse-amber-ring: rgba(14, 124, 102, 0.14);

    /* Status */
    --pulse-red:        #DC2626;
    --pulse-red-soft:   rgba(220, 38, 38, 0.08);
    --pulse-green:      #059669;
    --pulse-green-soft: rgba(5, 150, 105, 0.10);

    /* Radii */
    --pulse-r-sm:   10px;
    --pulse-r:      16px;
    --pulse-r-lg:   24px;
    --pulse-r-pill: 999px;

    /* Shadows — cool-toned */
    --pulse-shadow:    0 1px 2px rgba(11, 37, 69, 0.05),
                       0 6px 18px rgba(11, 37, 69, 0.06);
    --pulse-shadow-lg: 0 12px 34px rgba(11, 37, 69, 0.12),
                       0 24px 60px rgba(11, 37, 69, 0.08);
    --pulse-glow:      0 6px 22px rgba(52, 201, 163, 0.35);

    --pulse-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */
html, body {
    background: var(--pulse-bg);
    color: var(--pulse-text);
    font-family: var(--pulse-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(52, 201, 163, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(14, 124, 102, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* ------------------------------------------------------------
   WRAPPER
   ------------------------------------------------------------ */
.pulse-auth {
    width: 100%;
    max-width: 420px;
}

/* ------------------------------------------------------------
   BRAND
   ------------------------------------------------------------ */
.pulse-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.pulse-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pulse-amber), var(--pulse-amber-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(14, 124, 102, 0.28);
    flex-shrink: 0;
    transform: rotate(-4deg);
    transition: transform 0.3s ease;
}

.pulse-brand:hover .pulse-brand-mark {
    transform: rotate(0deg);
}

.pulse-brand-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: var(--pulse-text);
}

.pulse-brand-name span {
    color: var(--pulse-amber);
}

/* ------------------------------------------------------------
   CARD
   ------------------------------------------------------------ */
.pulse-card {
    background: var(--pulse-surface);
    border: 1px solid var(--pulse-border);
    border-radius: var(--pulse-r-lg);
    padding: 24px 20px;
    box-shadow: var(--pulse-shadow-lg);
    position: relative;
    overflow: hidden;
}

.pulse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pulse-amber), #34C9A3);
}

/* ------------------------------------------------------------
   SWITCH — segmented control
   ------------------------------------------------------------ */
.pulse-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--pulse-surface-2);
    border: 1px solid var(--pulse-border);
    border-radius: var(--pulse-r-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.pulse-switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--pulse-amber), var(--pulse-amber-2));
    border-radius: 8px;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 16px rgba(14, 124, 102, 0.28);
    z-index: 0;
}

.pulse-switch[data-active="register"] .pulse-switch-thumb {
    transform: translateX(100%);
}

.pulse-switch-btn {
    position: relative;
    z-index: 1;
    padding: 11px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--pulse-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    color: var(--pulse-muted);
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.pulse-switch-btn i {
    font-size: 12px;
}

.pulse-switch-btn.active {
    color: #FFFFFF;
}

.pulse-switch-btn:not(.active):hover {
    color: var(--pulse-text);
}

/* ------------------------------------------------------------
   FORM
   ------------------------------------------------------------ */
.pulse-form {
    display: none;
}

.pulse-form.active {
    display: block;
    animation: pulse-rise 0.3s ease;
}

@keyframes pulse-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Field */
.pulse-field {
    margin-bottom: 14px;
}

.pulse-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--pulse-text-2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.pulse-label i {
    color: var(--pulse-amber);
    font-size: 11px;
    width: 14px;
    text-align: center;
}

/* Input */
.pulse-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--pulse-surface-2);
    border: 1.5px solid var(--pulse-border);
    border-radius: var(--pulse-r-sm);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pulse-input-wrap:focus-within {
    border-color: var(--pulse-amber);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px var(--pulse-amber-ring);
}

.pulse-input-icon {
    padding: 0 4px 0 14px;
    color: var(--pulse-dim);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.pulse-input-wrap:focus-within .pulse-input-icon {
    color: var(--pulse-amber);
}

.pulse-input {
    flex: 1;
    min-width: 0;
    padding: 14px 14px 14px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--pulse-text);
    font-family: var(--pulse-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.pulse-input::placeholder {
    color: var(--pulse-dim);
    font-weight: 500;
    letter-spacing: 0;
}

/* Eye toggle */
.pulse-eye {
    padding: 0 14px;
    background: transparent;
    border: none;
    color: var(--pulse-dim);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-shrink: 0;
}

.pulse-eye:hover {
    color: var(--pulse-text-2);
}

/* ------------------------------------------------------------
   SUBMIT
   ------------------------------------------------------------ */
.pulse-submit {
    width: 100%;
    padding: 15px;
    min-height: 54px;
    margin-top: 6px;
    border: none;
    border-radius: var(--pulse-r-sm);
    background: linear-gradient(135deg, var(--pulse-amber), var(--pulse-amber-2));
    color: #FFFFFF;
    font-family: var(--pulse-font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
}

.pulse-submit i {
    font-size: 14px;
    color: #FFFFFF;
}

.pulse-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(52, 201, 163, 0.30) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pulse-submit:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(14, 124, 102, 0.32);
    transform: translateY(-1px);
}

.pulse-submit:hover:not(:disabled)::after {
    opacity: 1;
}

.pulse-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.pulse-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ------------------------------------------------------------
   FOOT
   ------------------------------------------------------------ */
.pulse-foot {
    text-align: center;
    font-size: 13px;
    color: var(--pulse-muted);
    margin-top: 16px;
    font-weight: 500;
}

.pulse-foot a {
    color: var(--pulse-amber);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    margin-left: 4px;
    border-bottom: 2px solid var(--pulse-amber);
    padding-bottom: 1px;
    transition: color 0.2s;
}

.pulse-foot a:hover {
    color: var(--pulse-amber-2);
}

/* ------------------------------------------------------------
   OR DIVIDER
   ------------------------------------------------------------ */
.pulse-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: var(--pulse-dim);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-or::before,
.pulse-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pulse-border);
}

/* ------------------------------------------------------------
   SOCIAL BUTTONS
   ------------------------------------------------------------ */
.pulse-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    min-height: 52px;
    margin-top: 10px;
    background: var(--pulse-surface-2);
    border: 1.5px solid var(--pulse-border);
    border-radius: var(--pulse-r-sm);
    color: var(--pulse-text);
    font-family: var(--pulse-font);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.pulse-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.10);
    background: #FFFFFF;
}

.pulse-social:active {
    transform: scale(0.98);
}

.pulse-social i:first-child {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    color: #FFFFFF;
}

.pulse-social span {
    flex: 1;
    text-align: left;
}

.pulse-social-chev {
    color: var(--pulse-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.pulse-social:hover .pulse-social-chev {
    transform: translateX(3px);
    color: var(--pulse-text);
}

/* WhatsApp */
.pulse-social-wa {
    border-color: rgba(37, 211, 102, 0.35);
}
.pulse-social-wa i:first-child {
    background: #25D366;
}
.pulse-social-wa:hover {
    border-color: #25D366;
}

/* Telegram */
.pulse-social-tg {
    border-color: rgba(34, 158, 217, 0.35);
}
.pulse-social-tg i:first-child {
    background: #229ED9;
}
.pulse-social-tg:hover {
    border-color: #229ED9;
}

/* ------------------------------------------------------------
   PROMOTER ACCESS
   ------------------------------------------------------------ */
.pulse-promoter-wrap {
    text-align: center;
    margin-top: 24px;
    padding: 0 8px;
}

.pulse-promoter-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--pulse-dim);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.pulse-promoter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--pulse-surface);
    border: 1.5px solid var(--pulse-border-2);
    border-radius: var(--pulse-r-sm);
    color: var(--pulse-text-2);
    font-family: var(--pulse-font);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--pulse-shadow);
}

.pulse-promoter:hover {
    border-color: var(--pulse-amber);
    color: var(--pulse-amber);
    background: var(--pulse-amber-soft);
    transform: translateY(-1px);
}

.pulse-promoter i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.pulse-promoter:hover i:last-child {
    transform: translateX(3px);
}

/* ------------------------------------------------------------
   LEGAL
   ------------------------------------------------------------ */
.pulse-legal {
    text-align: center;
    font-size: 11px;
    color: var(--pulse-dim);
    font-weight: 500;
    margin-top: 18px;
    padding: 0 8px;
    letter-spacing: 0.2px;
}

/* ------------------------------------------------------------
   TOAST
   ------------------------------------------------------------ */
.pulse-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--pulse-text);
    border: 1px solid var(--pulse-text);
    border-radius: var(--pulse-r-pill);
    padding: 12px 22px;
    font-family: var(--pulse-font);
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: var(--pulse-shadow-lg);
    z-index: 9999;
    opacity: 0;
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
    animation: pulse-toast-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pulse-toast.success { background: var(--pulse-green); border-color: var(--pulse-green); color: #FFFFFF; }
.pulse-toast.error   { background: var(--pulse-red);   border-color: var(--pulse-red);   color: #FFFFFF; }
.pulse-toast.warning { background: #EA580C;            border-color: #EA580C;            color: #FFFFFF; }
.pulse-toast.info    { background: var(--pulse-amber); border-color: var(--pulse-amber); color: #FFFFFF; }

@keyframes pulse-toast-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

@keyframes pulse-toast-down {
    from { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
    to   { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.95); }
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (min-width: 600px) {
    .pulse-auth {
        max-width: 460px;
    }

    .pulse-card {
        padding: 30px 26px;
    }

    .pulse-brand-mark {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .pulse-brand-name {
        font-size: 24px;
    }
}

/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------
   PRINT
   ------------------------------------------------------------ */
@media print {
    body {
        background: #FFFFFF !important;
        padding: 0 !important;
    }

    .pulse-brand-mark,
    .pulse-switch,
    .pulse-submit,
    .pulse-social,
    .pulse-promoter-wrap,
    .pulse-toast {
        display: none !important;
    }

    .pulse-card {
        border: 1px solid #CCCCCC !important;
        box-shadow: none !important;
    }
}

.pulse-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* ... */
    pointer-events: none;    /* ← CRITICAL: prevents layout jitter */
    opacity: 0;
    animation: pulse-toast-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}