@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #080808;
    --card: rgba(18, 18, 18, 0.78);
    --border: rgba(255, 255, 255, 0.09);
    --text: #f5f5f5;
    --muted: #8e8e8e;
    --gold: #c9a45c;
    --gold-light: #e3c37d;
    --input: rgba(255, 255, 255, 0.045);
}

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}


/* ========================================
   BACKGROUND
======================================== */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.background::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(201, 164, 92, 0.08),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #080808 0%,
            #0c0c0c 50%,
            #070707 100%
        );
}

.glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.12;
}

.glow-1 {
    top: -250px;
    left: -150px;
    background: var(--gold);
}

.glow-2 {
    bottom: -300px;
    right: -150px;
    background: #ffffff;
    opacity: 0.04;
}


/* ========================================
   CONTAINER
======================================== */

.login-container {
    position: relative;
    z-index: 1;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}


/* ========================================
   LOGIN CARD
======================================== */

.login-card {
    width: 100%;
    max-width: 450px;

    padding: 48px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 24px;

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    animation: cardAppear 0.7s ease forwards;
}

@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   BRAND
======================================== */

.brand {
    display: flex;
    flex-direction: column;

    margin-bottom: 48px;
}

.brand-name {
    font-family: "Manrope", sans-serif;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: 0.16em;

    color: var(--text);
}

.brand-subtitle {
    margin-top: 3px;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.55em;

    color: var(--gold);
}


/* ========================================
   HEADING
======================================== */

.login-heading {
    margin-bottom: 34px;
}

.eyebrow {
    display: block;

    margin-bottom: 12px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.2em;

    color: var(--gold);
}

.login-heading h1 {
    font-family: "Manrope", sans-serif;

    font-size: 38px;
    line-height: 1.08;

    letter-spacing: -0.04em;

    font-weight: 700;
}

.login-heading h1 span {
    color: var(--gold-light);
}

.login-heading p {
    max-width: 330px;

    margin-top: 16px;

    font-size: 14px;
    line-height: 1.6;

    color: var(--muted);
}


/* ========================================
   FORM
======================================== */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 21px;
}

.input-group {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;

    color: #d4d4d4;
}


/* ========================================
   INPUT
======================================== */

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-wrapper > svg {
    position: absolute;
    left: 17px;

    width: 18px;
    height: 18px;

    fill: none;
    stroke: #737373;
    stroke-width: 1.7;

    pointer-events: none;

    transition: stroke 0.25s ease;
}

.input-wrapper input {
    width: 100%;
    height: 54px;

    padding: 0 48px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    outline: none;

    background: var(--input);

    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.input-wrapper input::placeholder {
    color: #555;
}

.input-wrapper input:focus {
    border-color: rgba(201, 164, 92, 0.65);

    background: rgba(255, 255, 255, 0.065);

    box-shadow:
        0 0 0 3px rgba(201, 164, 92, 0.08);
}

.input-wrapper:focus-within > svg {
    stroke: var(--gold);
}


/* ========================================
   SHOW PASSWORD
======================================== */

.toggle-password {
    position: absolute;
    right: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: none;
    background: transparent;

    cursor: pointer;
}

.toggle-password svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: #666;
    stroke-width: 1.6;

    transition: stroke 0.25s ease;
}

.toggle-password:hover svg {
    stroke: var(--gold);
}


/* ========================================
   MESSAGE
======================================== */

.mensagem {
    min-height: 18px;

    margin-top: -5px;

    font-size: 12px;
    line-height: 1.4;

    text-align: center;

    transition: 0.25s ease;
}

.mensagem.erro {
    color: #e27b7b;
}

.mensagem.sucesso {
    color: #91c99c;
}

.mensagem.info {
    color: var(--gold-light);
}


/* ========================================
   LOGIN BUTTON
======================================== */

.login-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 56px;

    padding: 0 20px 0 23px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );

    color: #111;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.login-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );

    transition: left 0.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(201, 164, 92, 0.2);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    position: relative;

    width: 19px;
    height: 19px;

    fill: none;
    stroke: #111;
    stroke-width: 1.8;
}


/* ========================================
   FOOTER
======================================== */

.login-footer {
    margin-top: 32px;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

    text-align: center;
}

.login-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #777;

    font-size: 12px;
    text-decoration: none;

    transition: color 0.25s ease;
}

.login-footer a span {
    font-size: 15px;
}

.login-footer a:hover {
    color: var(--gold-light);
}


/* ========================================
   COPYRIGHT
======================================== */

.copyright {
    margin-top: 24px;

    color: #3f3f3f;

    font-size: 10px;

    letter-spacing: 0.08em;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 520px) {

    .login-container {
        padding: 25px 16px;
    }

    .login-card {
        padding: 34px 25px;

        border-radius: 20px;
    }

    .brand {
        margin-bottom: 38px;
    }

    .login-heading h1 {
        font-size: 32px;
    }

    .login-heading p {
        font-size: 13px;
    }

    .input-wrapper input {
        height: 52px;
    }

    .login-button {
        height: 54px;
    }
}