
/* =====================================
   SHOPYDAS - REGISTRO DE CLIENTES
===================================== */

:root {
    --primary: #10254d;
    --primary-dark: #091a39;
    --accent: #f5b400;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #f5f7fb;
    color: var(--text);
}

a {
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.registro-pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
}

.registro-contenedor {
    width: 100%;
    max-width: 460px;
}

/* LOGO */

.registro-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1px;
}

.registro-logo svg {
    width: 33px;
    height: 33px;
    color: var(--accent);
}

.registro-logo b {
    color: var(--accent);
}

/* TARJETA */

.registro-tarjeta {
    background: white;
    border: 1px solid #e9edf4;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 12px 40px rgba(16,37,77,.055);
}

.registro-icono {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eef2fa;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.registro-icono svg {
    width: 26px;
    height: 26px;
}

.registro-tarjeta h1 {
    margin: 0 0 9px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.7px;
}

.registro-subtitulo {
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 28px;
}

/* FORMULARIO */

.registro-formulario {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.registro-campo label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 8px;
}

.registro-input {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 48px;
    border: 1px solid #dce3ed;
    border-radius: 11px;
    padding: 0 13px;
    background: #ffffff;
    transition: border-color .2s, box-shadow .2s;
}

.registro-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,37,77,.08);
}

.registro-input > svg {
    width: 19px;
    height: 19px;
    color: #8995a8;
    flex-shrink: 0;
}

.registro-input input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    padding: 0;
}

.registro-input input::placeholder {
    color: #a0a9b8;
}

.ver-password {
    border: none;
    background: transparent;
    color: #8995a8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.ver-password svg {
    width: 19px;
    height: 19px;
}

/* BOTÓN */

.registro-boton {
    width: 100%;
    height: 49px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    transition: background .2s;
}

.registro-boton:hover {
    background: var(--primary-dark);
}

.registro-boton svg {
    width: 18px;
    height: 18px;
}

/* ERRORES */

.registro-errores {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 22px;
}

.registro-errores p {
    color: #b91c1c;
    font-size: 12px;
    margin: 5px 0;
}

/* INICIAR SESIÓN */

.registro-login {
    text-align: center;
    margin-top: 26px;
    font-size: 12px;
    color: var(--muted);
}

.registro-login a {
    color: var(--primary);
    font-weight: 800;
    margin-left: 4px;
}

.registro-login a:hover {
    text-decoration: underline;
}

/* VOLVER */

.registro-volver {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.registro-volver:hover {
    color: var(--primary);
}

.registro-volver svg {
    width: 16px;
    height: 16px;
}

/* CELULARES */

@media (max-width: 600px) {

    .registro-pagina {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .registro-logo {
        font-size: 25px;
        margin-bottom: 22px;
    }

    .registro-tarjeta {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .registro-tarjeta h1 {
        font-size: 23px;
    }

    .registro-subtitulo {
        font-size: 12px;
    }

    .registro-formulario {
        gap: 16px;
    }

    .registro-input {
        height: 46px;
    }
}
