/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* =========================================================
   BODY
========================================================= */

body {
    background-color: var(--cor-fundo, #040404);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--texto, #ffffff);
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

.login-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* =========================================================
   LOGO
========================================================= */

.logo-area {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-area img {
    width: clamp(120px, 40vw, 250px);
    height: clamp(120px, 40vw, 250px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--cor-borda, #e5b93f);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   BOX LOGIN
========================================================= */

.login-box {
    width: 100%;
    background: var(--cor-card, #0b0b0c);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 15px;
    border: 1px solid var(--cor-borda, #e5b93f);
    text-align: center;
}

/* =========================================================
   TÍTULO
========================================================= */

h1 {
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: var(--texto, #ffffff);
}

/* =========================================================
   INPUTS
========================================================= */

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--texto2, #a3a3a3);
}

.input-group input {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    background: color-mix(in srgb, var(--cor-fundo, #040404) 70%, white);
    border: 1px solid var(--cor-borda, #e5b93f);
    border-radius: 8px;
    color: var(--texto, #ffffff);
    outline: none;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: var(--cor-principal, #e5b93f);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cor-principal, #e5b93f) 25%, transparent);
}

.input-group input::placeholder {
    color: var(--texto2, #a3a3a3);
    opacity: 0.6;
    color: color-mix(in srgb, var(--texto2, #a3a3a3) 55%, transparent);
}

/* =========================================================
   ESQUECI A SENHA
========================================================= */

.forgot-link {
    display: block;
    font-size: 14px;
    color: var(--cor-secundaria, #1e1e1e);
    text-decoration: none;
    text-align: right;
    margin-top: 8px;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--hover, #fce38a);
}

/* =========================================================
   BOTÃO ACESSAR
========================================================= */

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: var(--botao, #e5b93f);
    color: var(--texto-botao, #000000);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-login:hover {
    background-color: var(--hover, #fce38a);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: scale(0.98);
}

/* =========================================================
   DIVISOR ("OU")
========================================================= */

.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    width: 100%;
}

.login-divider div {
    flex: 1;
    height: 1px;
    background-color: var(--cor-borda, #3a3a3a);
    opacity: 0.4;
}

.login-divider span {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--texto2, #a3a3a3);
    text-transform: uppercase;
}

/* =========================================================
   BOTÃO GOOGLE (SEMPRE BRANCO)
========================================================= */

.btn-google,
a.btn-google {
    width: 100%;
    height: 48px;
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-google:hover,
a.btn-google:hover {
    background: #f3f3f3 !important;
    color: #222222 !important;
    transform: translateY(-1px);
}

.btn-google svg,
a.btn-google svg {
    flex-shrink: 0;
}

/* =========================================================
   RODAPÉ
========================================================= */

.form-footer {
    margin-top: 25px;
    font-size: 14px;
    color: var(--texto2, #a3a3a3);
}

.form-footer a {
    color: var(--cor-secundaria, #1e1e1e);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: var(--hover, #fce38a);
}

/* =========================================================
   TELEFONE
========================================================= */

input[type="tel"] {
    letter-spacing: 1px;
}

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

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }

    button,
    .btn-login {
        font-size: 16px !important;
    }

    .login-container {
        width: 100%;
        max-width: 400px;
        min-width: 0;
    }

    .login-box {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    body {
        padding: 15px;
    }

    .login-box {
        padding: 20px 15px;
    }

    .logo-area img {
        width: 110px;
        height: 110px;
    }
}