@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
    --zygo-bg:#060807;
    --zygo-card:rgba(15,22,18,.84);
    --zygo-card-strong:rgba(18,28,22,.96);
    --zygo-border:rgba(255,255,255,.10);
    --zygo-muted:#93a39a;
    --zygo-text:#f4fff8;
    --zygo-green:#39ff88;
    --zygo-green-2:#20d86b;
    --zygo-shadow:0 24px 90px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--zygo-text);
    background:
        radial-gradient(circle at 20% 15%, rgba(57,255,136,.20), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(57,255,136,.10), transparent 32%),
        linear-gradient(135deg,#050705 0%,#09100c 52%,#050705 100%);
}
body.zygo-modal-open{overflow:hidden}

.zygo-auth-shell{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:32px;
}

.zygo-auth-card{
    width:min(100%,460px);
    padding:34px;
    border:1px solid var(--zygo-border);
    border-radius:30px;
    background:linear-gradient(180deg,rgba(18,29,22,.94),rgba(8,12,10,.92));
    box-shadow:var(--zygo-shadow);
    backdrop-filter:blur(22px);
    position:relative;
    overflow:hidden;
}

.zygo-auth-card::before{
    content:"";
    position:absolute;
    inset:-1px;
    pointer-events:none;
    background:radial-gradient(circle at 50% 0%,rgba(57,255,136,.18),transparent 45%);
}

.zygo-auth-card > *{position:relative;z-index:1}
.zygo-auth-card--compact{width:min(100%,520px)}

.zygo-auth-brand{
    display:inline-flex;
    align-items:center;
    margin-bottom:26px;
    color:#fff;
    text-decoration:none;
    font-size:30px;
    font-weight:800;
    letter-spacing:0;
}
.zygo-auth-brand span{color:var(--zygo-green)}

.zygo-auth-heading{text-align:left;margin-bottom:26px}
.zygo-auth-kicker{
    display:inline-flex;
    margin-bottom:12px;
    color:var(--zygo-green);
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.zygo-auth-heading h1{
    margin:0;
    font-size:clamp(28px,4vw,38px);
    line-height:1.05;
    letter-spacing:0;
}
.zygo-auth-heading p,
.zygo-modal-panel > p{
    margin:12px 0 0;
    color:var(--zygo-muted);
    font-size:15px;
    line-height:1.6;
}

.zygo-alert{
    margin-bottom:18px;
    padding:14px 16px;
    border-radius:18px;
    border:1px solid rgba(255,87,87,.28);
    background:rgba(255,87,87,.08);
    color:#ffd7d7;
    font-size:13px;
}
.zygo-alert ul{margin:8px 0 0;padding-left:18px}

.zygo-account-options{
    display:grid;
    gap:14px;
}

.zygo-option-card{
    width:100%;
    display:grid;
    grid-template-columns:54px 1fr auto;
    gap:14px;
    align-items:center;
    padding:18px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:24px;
    background:rgba(255,255,255,.045);
    color:var(--zygo-text);
    text-align:left;
    cursor:pointer;
    transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease;
}
.zygo-option-card:hover,
.zygo-option-card:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(57,255,136,.52);
    background:rgba(57,255,136,.08);
    box-shadow:0 18px 50px rgba(57,255,136,.10);
    outline:none;
}
.zygo-option-icon{
    width:54px;height:54px;
    display:grid;place-items:center;
    border-radius:18px;
    color:var(--zygo-green);
    background:rgba(57,255,136,.10);
    border:1px solid rgba(57,255,136,.18);
}
.zygo-option-icon svg{width:28px;height:28px}
.zygo-option-card strong{display:block;font-size:17px;font-weight:800;letter-spacing:0}
.zygo-option-card small{display:block;margin-top:4px;color:var(--zygo-muted);font-size:13px;line-height:1.45}
.zygo-option-card b{font-size:12px;color:var(--zygo-green);white-space:nowrap}

.zygo-auth-footer-text{
    margin:24px 0 0;
    text-align:center;
    color:var(--zygo-muted);
    font-size:14px;
}
.zygo-auth-footer-text a{color:var(--zygo-green);font-weight:800;text-decoration:none}

.zygo-modal{
    position:fixed;
    inset:0;
    z-index:1000;
    display:grid;
    place-items:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transition:opacity .22s ease,visibility .22s ease;
}
.zygo-modal.is-open{opacity:1;visibility:visible}
.zygo-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(12px);
}
.zygo-modal-panel{
    position:relative;
    z-index:1;
    width:min(100%,560px);
    max-height:min(88vh,760px);
    overflow:auto;
    padding:30px;
    border-radius:30px;
    border:1px solid rgba(255,255,255,.12);
    background:linear-gradient(180deg,rgba(20,31,24,.98),rgba(7,11,9,.98));
    box-shadow:0 30px 120px rgba(0,0,0,.72);
    transform:translateY(14px) scale(.98);
    transition:transform .22s ease;
}
.zygo-modal.is-open .zygo-modal-panel{transform:translateY(0) scale(1)}
.zygo-modal-panel h2{
    margin:0;
    font-size:clamp(24px,4vw,32px);
    letter-spacing:0;
}
.zygo-modal-close{
    position:absolute;
    top:18px;
    right:18px;
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
.zygo-modal-close:hover{border-color:rgba(57,255,136,.45);color:var(--zygo-green)}

.zygo-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:24px;
}
.zygo-form label{
    display:grid;
    gap:8px;
    color:#dcebe2;
    font-size:13px;
    font-weight:700;
}
.zygo-form input,
.zygo-form select{
    width:100%;
    height:54px;
    padding:0 16px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.11);
    background:rgba(255,255,255,.055);
    color:#fff;
    font:600 15px Inter,system-ui,sans-serif;
    outline:none;
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.zygo-form select option{color:#111;background:#fff}
.zygo-form input::placeholder{color:#6f8076}
.zygo-form input:focus,
.zygo-form select:focus{
    border-color:rgba(57,255,136,.72);
    background:rgba(57,255,136,.07);
    box-shadow:0 0 0 4px rgba(57,255,136,.10);
}
.zygo-primary-btn{
    grid-column:1/-1;
    height:56px;
    border:0;
    border-radius:18px;
    background:linear-gradient(135deg,var(--zygo-green),var(--zygo-green-2));
    color:#031008;
    font-size:15px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 18px 40px rgba(57,255,136,.20);
}
.zygo-primary-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}

@media (max-width:640px){
    .zygo-auth-shell{padding:18px;align-items:start;padding-top:34px}
    .zygo-auth-card{padding:24px;border-radius:26px}
    .zygo-option-card{grid-template-columns:48px 1fr;padding:16px}
    .zygo-option-card b{grid-column:2;margin-top:2px}
    .zygo-modal{align-items:end;padding:0}
    .zygo-modal-panel{width:100%;max-height:88vh;border-radius:28px 28px 0 0;padding:24px 18px 22px}
    .zygo-form{grid-template-columns:1fr;gap:14px}
}

/* Capa profesional final para formularios embebidos y modales publicos */
:root{
    --zygo-bg:#030705;
    --zygo-card:rgba(7,16,11,.92);
    --zygo-card-strong:rgba(8,19,13,.98);
    --zygo-border:rgba(232,255,238,.12);
    --zygo-muted:#9aaca1;
    --zygo-text:#f7fff8;
    --zygo-green:#0ae98a;
    --zygo-green-2:#8ddc52;
    --zygo-shadow:0 34px 100px rgba(0,0,0,.58);
}

body{
    background:
        radial-gradient(circle at 72% 12%,rgba(10,233,138,.16),transparent 28rem),
        radial-gradient(circle at 12% 24%,rgba(141,220,82,.10),transparent 26rem),
        linear-gradient(180deg,#030705 0%,#06130d 48%,#020604 100%);
}

.zygo-auth-card,
.zygo-modal-panel{
    background:
        linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)),
        var(--zygo-card);
    border-color:var(--zygo-border);
    border-radius:24px;
    box-shadow:var(--zygo-shadow);
}

.zygo-auth-heading h1,
.zygo-modal-panel h2{
    color:#fff;
    font-weight:900;
    letter-spacing:0;
}

.zygo-auth-kicker,
.zygo-auth-footer-text a,
.zygo-modal-close:hover{
    color:var(--zygo-green);
}

.zygo-option-card,
.zygo-form input,
.zygo-form select{
    background:rgba(2,8,5,.76);
    border-color:rgba(232,255,238,.13);
    border-radius:14px;
}

.zygo-option-card:hover,
.zygo-option-card:focus-visible,
.zygo-form input:focus,
.zygo-form select:focus{
    border-color:rgba(10,233,138,.34);
    box-shadow:0 0 0 4px rgba(10,233,138,.09);
}

.zygo-option-icon,
.zygo-primary-btn{
    background:var(--zygo-green);
    color:#031008;
}

.zygo-primary-btn{
    border-radius:12px;
    box-shadow:0 20px 46px rgba(10,233,138,.22);
}

.merchant-modal-content{
    background:
        linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)),
        rgba(8,19,13,.98)!important;
    border-color:rgba(232,255,238,.12)!important;
    border-radius:24px!important;
}

.merchant-modal-body{
    padding:26px 32px 24px!important;
}

.merchant-register-hero,
.real-register-form .merchant-register-hero{
    background:
        linear-gradient(135deg,rgba(10,233,138,.12),rgba(255,255,255,.025)),
        rgba(5,14,9,.78)!important;
    border-color:rgba(10,233,138,.18)!important;
    border-radius:18px!important;
}

.merchant-register-hero h2{
    letter-spacing:0!important;
    font-weight:900!important;
}

.merchant-register-section,
.real-register-form .merchant-register-section{
    background:
        linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.022)),
        rgba(5,14,9,.68)!important;
    border-color:rgba(232,255,238,.10)!important;
    border-radius:18px!important;
}

.merchant-input,
.merchant-select,
.merchant-textarea{
    background:rgba(2,8,5,.76)!important;
    border-color:rgba(232,255,238,.13)!important;
    border-radius:12px!important;
    color:#f7fff8!important;
}

.merchant-input:focus,
.merchant-select:focus,
.merchant-textarea:focus{
    border-color:rgba(10,233,138,.36)!important;
    box-shadow:0 0 0 4px rgba(10,233,138,.09)!important;
}

.merchant-submit{
    background:#0ae98a!important;
    border-radius:12px!important;
    box-shadow:0 20px 46px rgba(10,233,138,.22)!important;
    color:#031008!important;
}
