
/* ==========================================
   LE BRANT | LOGIN PREMIUM
   ========================================== */

@font-face {
    font-family: 'Voga';
    src: url('../fonts/Voga-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #2c221d;
    --gold: #9d784c;
    --cream: #f5eee3;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.lebrant-login {
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--ink);
    background: #b49a7e;
}

/* ESTRUTURA */

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 52% 48%;
}

/* LADO ESQUERDO — FOTOGRAFIA */

.login-visual {
    position: relative;
    min-height: 100vh;
    background: #b7a084
        url('../images/login-jewelry.jpg')
        center 54% / cover no-repeat;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(20, 14, 8, 0.12),
        transparent 80%
    );
}

/* LE BRANT — VOGA BRANCA */

.visual-home {
    position: absolute;
    top: 28px;
    left: 8%;
    z-index: 10;

    display: inline-flex;
    align-items: center;

    font-family: 'Voga', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;

    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.visual-home-title {
    display: inline-block;
    color: #ffffff;
}

.visual-home-line,
.visual-home-logo,
.visual-home img {
    display: none;
}

/* FRASE SOBRE A FOTOGRAFIA */

.visual-caption {
    position: absolute;
    z-index: 1;
    bottom: 38px;
    left: 8%;
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 4px;
    text-shadow: 0 1px 8px #0008;
}

.caption-line {
    display: block;
    width: 45px;
    height: 1px;
    background: #ffffff;
}

/* LADO DIREITO */

.login-side {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    padding: 55px clamp(24px, 5vw, 90px) 28px;

    background: linear-gradient(
        125deg,
        #c4ad92 0%,
        #aa9077 48%,
        #d4c0a9 100%
    );

    position: relative;
}

/* CARTÃO DE LOGIN */

.login-panel {
    width: 100%;
    max-width: 545px;

    padding:
        clamp(30px, 4vw, 62px)
        clamp(25px, 4vw, 60px)
        38px;

    background: rgba(250, 246, 239, 0.94);
    box-shadow: 0 18px 60px #3b241e35;
}

/* LOGO OFICIAL — FORMULÁRIO */

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 26px;
}

.login-logo-img {
    display: block;
    width: 180px;
    max-width: 100%;
    max-height: 150px;
    height: auto;
    object-fit: contain;
}

/* LINHA DOURADA */

.gold-rule {
    display: block;
    margin: 0 auto 22px;
    width: 50px;
    height: 1px;
    background: #b38b5e;
}

/* TÍTULO EM VOGA */

.login-panel h1 {
    font-family: 'Voga', Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 3.4vw, 47px);
    line-height: 1.1;
    text-align: center;
    margin: 0 0 10px;
}

.login-subtitle {
    text-align: center;
    color: #695e53;
    font-size: 14px;
    margin: 0 0 31px;
}

/* FORMULÁRIO */

.login-form label {
    display: block;
    font-size: 13px;
    margin: 19px 0 9px;
}

.input-wrap {
    height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid #c9bba9;
    background: #f8f4ee;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
    border-color: #9c7446;
    box-shadow: 0 0 0 2px #9c744620;
}

.input-wrap > svg {
    flex: none;
    width: 21px;
    height: 21px;
    margin-left: 16px;
    fill: none;
    stroke: #9c7446;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: #35271f;
    padding: 15px 14px;
}

.input-wrap input::placeholder {
    color: #9e8d7b;
}

/* MOSTRAR / OCULTAR SENHA */

.password-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #9c7446;
    width: 46px;
    height: 48px;
    display: grid;
    place-items: center;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* BOTÃO ENTRAR */

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    width: 100%;
    margin-top: 29px;
    min-height: 60px;

    border: 0;
    background: #30241e;
    color: #ffffff;
    cursor: pointer;

    font: 500 14px 'DM Sans', sans-serif;
    letter-spacing: 4px;
    transition: background 0.2s;
}

.login-submit:hover {
    background: #624733;
}

.login-submit span {
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

/* ERRO DE LOGIN */

.login-error {
    border-left: 3px solid #a3443e;
    background: #f6e7e2;
    color: #7e2d2b;
    padding: 12px 15px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* VOLTAR À LOJA */

.back-link {
    display: block;
    text-align: center;
    margin-top: 23px;
    color: #786858;
    font-size: 12px;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* RODAPÉ DO LOGIN */

.login-footer {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
    margin: 24px 0 0;
    text-shadow: 0 1px 5px #0004;
}

/* CORREÇÃO DO AUTOPREENCHIMENTO CHROME */

.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f8f4ee inset;
    -webkit-text-fill-color: #35271f;
    transition: background-color 9999s ease-in-out 0s;
}

/* RESPONSIVIDADE — TABLET */

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 240px;
        background-position: center 42%;
    }

    .visual-home {
        top: 25px;
    }

    .visual-caption {
        bottom: 18px;
    }

    .login-side {
        min-height: calc(100vh - 240px);
        padding: 35px 18px;
    }

    .login-panel {
        max-width: 540px;
    }
}

/* RESPONSIVIDADE — CELULAR */

@media (max-width: 480px) {
    .login-visual {
        min-height: 170px;
    }

    .login-side {
        min-height: calc(100vh - 170px);
        padding: 20px 12px;
    }

    .login-panel {
        padding: 32px 24px;
    }

    .login-logo-img {
        width: 155px;
    }

    .login-panel h1 {
        font-size: 36px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .visual-home {
        font-size: 30px;
    }
}
