/* ── login.css — Villa Ganso ── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

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

/* ── Fundo ── */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #1c1008;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%,
            #7a3a0e 0%,
            #3d1a06 40%,
            #1c1008 100%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 40% 50% at 70% 70%,
            rgba(196, 132, 90, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
}

/* ── Card ── */
.card {
    background: #fdf9f5;
    border-radius: 3px;
    border-top: 3px solid #c4845a;
    padding: 7rem 8rem;
    width: 100%;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

/* cantos decorativos — bottom via ::before e ::after */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #c4845a;
    border-style: solid;
    opacity: 0.35;
}

.card::before {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 1px 1px;
}

.card::after {
    bottom: 20px;
    right: 20px;
    border-width: 0 1px 1px 0;
}

.corner-tl,
.corner-tr {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #c4845a;
    border-style: solid;
    opacity: 0.35;
}

.corner-tl {
    top: 14px;
    left: 20px;
    border-width: 1px 0 0 1px;
}

.corner-tr {
    top: 14px;
    right: 20px;
    border-width: 1px 1px 0 0;
}

/* ── Eyebrow ── */
.card-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c4845a;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-eyebrow::before,
.card-eyebrow::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: #c4845a;
    opacity: 0.35;
}

/* ── Título ── */
.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 450;
    color: #1c1008;
    line-height: 1.15;
    margin-bottom: 0.35rem;
}

.card h3 em {
    font-style: italic;
    color: #c4845a;
}

/* Subtítulo */
.card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 300;
    color: #9a8878;
    letter-spacing: 0.04em;
    margin-bottom: 2.2rem;
}

/* ── Labels ── */
.card label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 520;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a8878;
    margin-bottom: 0.45rem;
}

/* ── Inputs ── */
.username-block,
.password-block {
    margin-bottom: 1.3rem;
}

.card input[type="text"],
.card input[type="email"],
.card input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 320;
    color: #1c1008;
    background: #fff;
    border: 1px solid #e8dfd4;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card input::placeholder {
    color: #c4b8a8;
    font-weight: 300;
}

.card input[type="text"]:focus,
.card input[type="email"]:focus,
.card input[type="password"]:focus {
    border-color: #c4845a;
    box-shadow: 0 0 0 3px rgba(196, 132, 90, 0.08);
}

/* ── Botão ── */
.login-block .btn-login {
    display: block;
    width: 100%;
    margin-top: 1.8rem;
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fdf9f5;
    background: #c4845a;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-block .btn-login:hover {
    background: #a8683e;
}

/* ── Divisor ── */
.card hr {
    border: none;
    height: 0.5px;
    background: #e8dfd4;
    margin: 2rem 0 1.4rem;
}

/* ── Link de voltar ── */
.card-text a {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 300;
    color: #9a8878;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.card-text a:hover {
    color: #c4845a;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    body {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 4rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
        max-width: 100%;
    }

    .card h3 {
        font-size: 2.2rem;
    }

    .card-subtitle {
        font-size: 12px;
        margin-bottom: 1.8rem;
    }

    .card label {
        font-size: 11px;
    }

    .card input[type="text"],
    .card input[type="email"],
    .card input[type="password"] {
        font-size: 16px;
        padding: 1rem;
    }

    .login-block .btn-login {
        padding: 1.1rem;
        font-size: 14px;
    }

    .username-block,
    .password-block {
        margin-bottom: 1.1rem;
    }

    .back-link {
        position: fixed;
        top: 1rem;
        left: 1rem;
        font-size: 13px;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
        color: #c4845a;
    }
}

.back-link {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #c4845a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    z-index: 10;
}

.back-link:hover {
    color: #fff;
    background: rgba(196, 132, 90, 0.5);
}