
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

/* =========================================
   DISAYER BEAUTY — ESTILO COMPARTIDO
   Login · Registro · Mi cuenta
========================================= */

:root {
    --pink: #e9b4bd;
    --rose: #c78391;
    --rose-dark: #985966;
    --blush: #fbecee;
    --cream: #fff9f6;
    --soft-pink: #f7e7e9;
    --ink: #49363b;
    --muted: #876f74;
    --line: rgba(151, 87, 101, 0.22);
    --white: #fffdfb;
    --shadow: 0 18px 50px rgba(115, 67, 77, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background:
        radial-gradient(
            ellipse at 90% 5%,
            rgba(255, 255, 255, 0.95) 0,
            transparent 38%
        ),
        var(--blush);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--ink);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 5vw, 3rem);
    line-height: 1.15;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.25;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.35;
}

p {
    margin-top: 0;
}

a {
    color: var(--rose-dark);
    text-decoration: underline;
    text-decoration-color: rgba(152, 89, 102, 0.4);
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: #814753;
    text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   MARCA
========================================= */

.auth-brand {
    margin-bottom: 28px;
    color: var(--rose-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.3;
}

.auth-brand::after {
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 13px;
    background: var(--pink);
    content: "";
}

/* =========================================
   LOGIN Y REGISTRO
========================================= */

.auth-card {
    width: 100%;
    max-width: 490px;
    margin: auto;
    padding: clamp(28px, 6vw, 52px);
    border: 1px solid var(--line);
    background: rgba(255, 249, 246, 0.96);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin-bottom: 12px;
}

.auth-intro {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

/* =========================================
   FORMULARIOS
========================================= */

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

label {
    display: block;
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

input,
select,
textarea {
    width: 100%;
    min-height: 49px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    color: var(--ink);
    background: var(--white);
    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #b29ba0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--rose);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(199, 131, 145, 0.13);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--rose-dark);
    outline-offset: 3px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

/* =========================================
   BOTONES
========================================= */

.auth-button,
.account-button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--rose-dark);
    border-radius: 999px;
    color: #fff;
    background: var(--rose-dark);
    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.auth-button {
    width: 100%;
    margin-top: 6px;
}

.auth-button:hover,
.account-button:hover {
    border-color: #814753;
    color: #fff;
    background: #814753;
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-button:active,
.account-button:active {
    transform: translateY(0);
}

.account-button.secondary {
    border-color: var(--line);
    color: var(--rose-dark);
    background: transparent;
}

.account-button.secondary:hover {
    border-color: var(--rose-dark);
    color: #fff;
    background: var(--rose-dark);
}

/* =========================================
   ENLACES Y MENSAJES
========================================= */

.auth-links {
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.9;
    text-align: center;
}

.auth-links a {
    display: inline-block;
    margin-left: 4px;
    font-weight: 700;
}

.auth-error,
.notice,
.success,
.error,
.alert {
    margin: 0 0 24px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    color: var(--rose-dark);
    background: var(--soft-pink);
    font-size: 0.88rem;
    line-height: 1.7;
}

.auth-error,
.error {
    border-color: rgba(165, 70, 80, 0.25);
    color: #913f4b;
    background: #fff0f0;
}

.success {
    border-color: rgba(91, 133, 99, 0.25);
    color: #456e4c;
    background: #f1f8f0;
}

.muted {
    color: var(--muted);
}

/* =========================================
   MI CUENTA
========================================= */

.account {
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.account > .auth-brand {
    margin-bottom: 34px;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.account-header > div {
    min-width: 0;
}

.account-header h1 {
    margin-bottom: 10px;
}

.account-header p {
    margin-bottom: 0;
}

.account-header .account-button {
    flex-shrink: 0;
}

.account-card {
    margin-bottom: 26px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    background: rgba(255, 249, 246, 0.96);
    box-shadow: var(--shadow);
}

.account-card > p {
    margin-bottom: 12px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.account-card > p:last-child {
    margin-bottom: 0;
}

.account-card strong {
    color: var(--ink);
    font-weight: 600;
}

.account-card > p .account-button {
    margin: 2px 0 10px;
}

/* =========================================
   CITAS
========================================= */

.appointment {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.appointment:hover {
    border-color: rgba(199, 131, 145, 0.55);
    box-shadow: 0 8px 24px rgba(115, 67, 77, 0.05);
}

.appointment h3 {
    margin-bottom: 16px;
}

.appointment p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.appointment p strong {
    color: var(--ink);
    font-weight: 600;
}

.status {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--rose-dark);
    background: var(--soft-pink);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.5;
}

/* =========================================
   RESPONSIVE — MÓVILES
========================================= */

@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .auth-card {
        margin: auto;
        padding: 28px 22px;
    }

    .auth-brand {
        margin-bottom: 24px;
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.35rem;
    }

    .account {
        margin: 0 auto;
    }

    .account > .auth-brand {
        margin-bottom: 28px;
    }

    .account-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-bottom: 24px;
    }

    .account-header .account-button {
        width: 100%;
    }

    .account-card {
        padding: 24px 20px;
    }

    .appointment {
        padding: 20px 16px;
    }

    .account-button {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}