/* =========================================================
   home/css/home.css — Estilos de la página de acceso (login)
   Ubicación: Sonido/home/css/home.css
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Work Sans", Arial, sans-serif;
    background: #f0eeeb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
}

/* ── Contenedor principal ──────────────────────────────── */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 400px;
}

/* ── Marca ─────────────────────────────────────────────── */
.brand h1 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.brand p {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
}

/* ── Tarjeta ───────────────────────────────────────────── */
.card {
    width: 100%;
    background: #e8e6e3;
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 10px 10px 30px #c9c7c4, -10px -10px 30px #ffffff;
}

/* ── Campos ────────────────────────────────────────────── */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 10px;
    background: #f0eeeb;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color .2s;
    box-shadow: inset 3px 3px 6px #d1cfcc, inset -3px -3px 6px #fff;
}

.field input:focus       { border-color: #1a1a1a; }
.field input::placeholder { color: #bbb; }

/* ── Input con ojo ─────────────────────────────────────── */
.input-wrap          { position: relative; }
.input-wrap input    { padding-right: 42px; }

.toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #bbb;
    line-height: 0;
    transition: color .2s;
}
.toggle-pwd:hover { color: #555; }

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }

/* ── Botón principal ───────────────────────────────────── */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: #8f2942;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    margin-top: 6px;
}
.btn-primary:hover    { background: #7a2438; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

/* Estado de carga */
.btn-primary .loading              { display: none; }
.btn-primary.loading-state .text   { display: none; }
.btn-primary.loading-state .loading { display: inline; }

/* ── Error ─────────────────────────────────────────────── */
.msg-error {
    font-size: 0.78rem;
    color: #c0392b;
    background: #fdecea;
    border-left: 3px solid #c0392b;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: none;
}
.msg-error.visible { display: block; }

/* ── Pie ───────────────────────────────────────────────── */
.footer {
    font-size: 0.7rem;
    color: #ccc;
    letter-spacing: 0.04em;
}
