﻿/* Login Proveedores/index.aspx — misma pieza visual que portal-cuidanet.html */
.pv {
    --teal: #0790a9;
    --teal-ink: #05697c;
    --green: #6dbd98;
    --green-soft: #dcefe5;
    --paper: #f5f8f6;
    --white: #ffffff;
    --ink: #0f2427;
    --ink-2: #44605f;
    --ink-3: #7c9593;
    --rule: rgba(6, 43, 49, .12);
    --err: #9a3b2a;
    --err-bg: #fbece8;
    --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.pv *,
.pv *::before,
.pv *::after { box-sizing: border-box; }

.pv [hidden] { display: none !important; }

.pv h1, .pv h2, .pv h3, .pv p { margin: 0; }
.pv a { color: var(--teal-ink); }

.pv .shell { min-height: 100vh; display: grid; }

.pv .side {
    display: flex;
    flex-direction: column;
    padding-block: clamp(1.5rem, 4vw, 2.5rem);
    padding-inline: 1rem;
    gap: 1.75rem;
}

.pv .side-top { display: flex; justify-content: center; padding-top: .5rem; }
.pv .logo { height: 52px; width: auto; max-width: min(280px, 80vw); }

.pv .back { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--teal-ink); }
.pv .back:hover { text-decoration: underline; }

.pv .main {
    flex: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1.25rem;
}

.pv .card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 70px rgba(6, 43, 49, .08);
    display: grid;
    gap: 1.4rem;
}

.pv .card-eb {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: .9rem;
    color: var(--teal);
    margin-bottom: .6rem;
}

.pv .card-eb svg { width: 30px; height: auto; fill: var(--green); }
.pv .card h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; }
.pv .card .pv-sub { margin-top: .35rem; font-size: .95rem; color: var(--ink-2); }

.pv .fields { display: grid; gap: 1rem; }
.pv .field { display: grid; gap: .45rem; }
.pv .field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.pv .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pv .row a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.pv .row a:hover { text-decoration: underline; }

.pv .input { position: relative; }
.pv .input input {
    font: inherit;
    font-size: 1rem;
    width: 100%;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--rule);
    border-radius: 14px;
    padding: .85rem 1rem;
    transition: border-color .2s, background .2s;
}
.pv .input input:focus { outline: none; border-color: var(--teal); background: var(--white); }
.pv .input.pw input { padding-right: 3.2rem; }

.pv .eye {
    all: unset;
    cursor: pointer;
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--ink-3);
}
.pv .eye:hover { color: var(--teal-ink); }
.pv .eye:focus-visible { outline: 2px solid var(--teal); }
.pv .eye .i-hide { display: none; }
.pv .eye[aria-pressed="true"] { color: var(--teal-ink); }
.pv .eye[aria-pressed="true"] .i-show { display: none; }
.pv .eye[aria-pressed="true"] .i-hide { display: block; }
.pv .eye svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv .btn,
.pv input.btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    background: var(--teal);
    color: var(--white);
    font-family: var(--body);
    font-weight: 600;
    font-size: 1.02rem;
    text-align: center;
    box-shadow: 0 14px 30px rgba(7, 144, 169, .25);
    transition: background .2s, transform .2s;
}
.pv .btn:hover,
.pv input.btn:hover { background: var(--teal-ink); transform: translateY(-1px); }
.pv .btn:focus-visible,
.pv input.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.pv .msg {
    font-size: .88rem;
    line-height: 1.5;
    border-radius: 12px;
    padding: .7rem .9rem;
    color: var(--teal-ink);
    background: #eaf4f6;
}
.pv .msg.err { color: var(--err); background: var(--err-bg); }
.pv .msg:empty { display: none; }

.pv .new {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: .95rem;
    color: var(--ink-2);
}
.pv .new a { font-weight: 600; text-decoration: none; }
.pv .new a:hover { text-decoration: underline; }

.pv .prov {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: var(--green-soft);
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s;
}
.pv .prov:hover { transform: translateY(-2px); }
.pv .prov-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--white);
    color: var(--teal-ink);
    display: grid;
    place-items: center;
}
.pv .prov-ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pv .prov b { display: block; font-family: var(--display); font-size: .98rem; }
.pv .prov span { font-size: .86rem; color: var(--ink-2); }
.pv .prov i { margin-left: auto; font-style: normal; color: var(--teal-ink); font-weight: 700; }

.pv .help-link {
    all: unset;
    cursor: pointer;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--teal-ink);
}
.pv .help-link:hover { text-decoration: underline; }
.pv .help-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.pv .help-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv .modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(6, 43, 49, .45);
}
.pv .modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 24px;
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: 0 30px 80px rgba(6, 43, 49, .3);
    display: grid;
    gap: 1rem;
}
.pv .modal-box h3 {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    padding-right: 2.5rem;
}
.pv .modal-box > p { font-size: .9rem; color: var(--ink-2); margin-top: -.6rem; }
.pv .modal-x {
    all: unset;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink-2);
    background: var(--paper);
}
.pv .modal-x:hover { color: var(--ink); }
.pv .modal-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pv .modal ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pv .modal li { display: grid; gap: .1rem; padding: .75rem 0; border-top: 1px solid var(--rule); }
.pv .modal li span { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.pv .modal li b { font-size: 1rem; font-weight: 600; color: var(--ink); }
.pv .modal li small { font-size: .82rem; color: var(--ink-2); }

.pv .pv-foot {
    display: grid;
    justify-items: center;
    gap: .75rem;
    font-size: .78rem;
    color: var(--ink-3);
    line-height: 1.5;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .pv * { transition: none !important; }
}
