/* =========================================================================
   Login Glamy by AG — tema claro (salão de beleza)
   Usado apenas na página public/login-glamy.html, servida quando o domínio
   é glamy.* (ver rota /login em server.js). Arquivo isolado de propósito:
   não deve interferir no login escuro do Barber PRO (css/style.css).
   ========================================================================= */

:root {
    --glamy-rose: #b07a54;
    --glamy-rose-dark: #a5714e;
    --glamy-rose-light: #d9a985;
    --glamy-ink: #40352f;
    --glamy-muted: #9a8a7e;
    --glamy-line: rgba(176, 122, 84, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--glamy-ink);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(250, 242, 238, 0.28)),
        url('../img/fundosalao.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.glamy-login {
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----- Card ----- */
.glamy-card {
    width: 100%;
    background: rgba(255, 251, 248, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(197, 157, 128, 0.35);
    border-radius: 22px;
    padding: 2.6rem 2.4rem 2.9rem;
    box-shadow:
        0 22px 55px rgba(150, 110, 85, 0.20),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

/* ----- Marca ----- */
.glamy-brand {
    text-align: center;
    line-height: 1.05;
    margin-bottom: 1.6rem;
}

.glamy-brand strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(120deg, var(--glamy-rose-light), var(--glamy-rose-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--glamy-rose-dark);
}

.glamy-brand span {
    display: block;
    margin-top: 0.15rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--glamy-rose);
}

/* ----- Títulos ----- */
.glamy-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--glamy-ink);
}

.glamy-subtitle {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--glamy-muted);
    margin: 0.4rem 0 2rem;
}

/* ----- Campos ----- */
.glamy-field {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.15rem;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--glamy-line);
    transition: border-color 0.25s ease;
}

.glamy-field:focus-within {
    border-bottom-color: var(--glamy-rose);
}

.glamy-field:has(.input-error) {
    border-bottom-color: #d66a5a;
}

.glamy-field__icon {
    display: flex;
    color: #c39c7f;
    flex-shrink: 0;
}

.glamy-field__icon svg {
    width: 20px;
    height: 20px;
}

.glamy-field input {
    flex: 1;
    min-width: 0;
    padding: 0 0.65rem;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--glamy-ink);
}

.glamy-field input::placeholder {
    color: #b9a99c;
}

/* ----- Botão mostrar/ocultar senha ----- */
.glamy-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.15rem;
    cursor: pointer;
    color: #c39c7f;
    flex-shrink: 0;
}

.glamy-eye:hover {
    color: var(--glamy-rose);
}

.glamy-eye svg {
    width: 20px;
    height: 20px;
}

.glamy-eye__on {
    display: none;
}

.glamy-eye.is-visible .glamy-eye__off {
    display: none;
}

.glamy-eye.is-visible .glamy-eye__on {
    display: block;
}

/* ----- Erro ----- */
.glamy-error {
    color: #c0392b;
    font-size: 0.85rem;
    text-align: center;
    margin: -0.35rem 0 1rem;
}

/* ----- Botão ----- */
.glamy-btn {
    width: 100%;
    padding: 0.95rem;
    margin-top: 0.6rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #cfa07c 0%, var(--glamy-rose-dark) 100%);
    box-shadow: 0 10px 24px rgba(165, 113, 78, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.glamy-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(165, 113, 78, 0.42);
}

.glamy-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
    filter: none;
}

/* ----- Rodapé ----- */
.glamy-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: #6f6156;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

.glamy-footer a {
    color: var(--glamy-rose-dark);
    text-decoration: none;
    font-weight: 500;
}

.glamy-footer a:hover {
    text-decoration: underline;
}

.glamy-footer__sep {
    margin: 0 0.4rem;
    opacity: 0.6;
}

/* ----- Responsivo ----- */
@media (max-width: 480px) {
    .glamy-card {
        padding: 2.1rem 1.5rem 2.3rem;
        border-radius: 18px;
    }

    .glamy-brand strong {
        font-size: 2.1rem;
    }

    .glamy-title {
        font-size: 1.25rem;
    }

    .glamy-field input {
        min-height: 44px;
    }

    .glamy-btn {
        min-height: 50px;
    }

    .glamy-footer {
        position: static;
        margin-top: 1.75rem;
    }
}
