@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --cor-principal: #197DFA;
    --cor-secundaria: #FFFFFF;
    --cor-hover: #0d5fc0;
    --cor-borda: #ccc;
    --cor-texto: #333;
    --fonte: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--fonte);
    display: flex;
    flex-direction: row;
}

/* ==========================
   SANDBOX BANNER
========================== */
#sandbox-banner {
    position: absolute;
    top: 0;
    width: 100%;
    background: #ff9800;
    color: #000;
    padding: 12px 0;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    z-index: 999;
}

/* ==========================
   LOGO / LADO ESQUERDO
========================== */
#logo-login {
    background-color: #006EFA;
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#logo-login img#logo {
    max-width: 30%;
    height: auto;
    margin: 0 auto 40px auto;
}

#logo-login #emissor-img {
    max-width: 60%;
    height: auto;
    margin: 0 auto;
}

#logo-login h1 {
    color: white;
    margin: 30px auto;
    font-size: 3em;
}

/* ==========================
   ÁREA DE LOGIN
========================== */
.imgs-login {
    display: flex;
    flex-direction: column;
}

div.login {
    width: 480px;
    height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div.login h1 {
    margin-bottom: 20px;
    font-size: 2em;
}

/* ==========================
   FORMULÁRIO DE LOGIN
========================== */
.form-login {
    --bg-light: #efefef;
    --bg-dark: #707070;
    --clr: var(--cor-principal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.input-span {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-login input[type="text"],
.form-login input[type="email"],
.form-login input[type="password"] {
    border-radius: 0.5rem;
    padding: 1rem 0.75rem;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: 1px solid #ccc;
}

.form-login input[type="text"]:focus,
.form-login input[type="email"]:focus,
.form-login input[type="password"]:focus {
    outline: 1px solid var(--clr);
}

label {
    align-self: flex-start;
    color: var(--cor-principal);
    font-weight: 600;
}

.form-login .submit {
    padding: 1rem 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 3rem;
    background-color: var(--cor-principal);
    color: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: all 300ms;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-login .submit:hover {
    background-color: var(--cor-hover);
    color: #fff;
}

.span {
    text-decoration: none;
    color: var(--bg-dark);
}

.span a {
    color: var(--clr);
    text-decoration: none;
}

/* ==========================
   OLHO (MOSTRAR/ESCONDER SENHA)
========================== */
.senha-wrapper {
    position: relative;
    width: 100%;
}

.senha-wrapper input {
    width: 100%;
    padding-right: 2.5rem; /* espaço para o ícone */
}

.senha-wrapper .olho {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #707070;
    transition: color 0.3s;
}

.senha-wrapper .olho:hover {
    color: var(--cor-principal);
}


#link-esqueci {
    text-decoration: none;
}

/* ==========================
   RESPONSIVIDADE
========================== */

/* Telas grandes até 1200px */
@media (max-width: 1200px) {
    #logo-login {
        width: 65%;
    }

    #logo-login h1 {
        font-size: 2em;
    }
}

/* Notebooks até 980px */
@media (max-width: 980px) {
    body {
        flex-direction: column;
    }

    .input-span {
        width: 60%;
    }

    #logo-login {
        width: 100%;
        height: 40vh;
    }

    #logo-login #emissor-img {
        max-width: 20%;
    }

    div.login {
        width: 100%;
        height: 60vh;
    }
}

/* Tablets até 768px */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .input-span {
        width: 80%;
    }

    #logo-login {
        width: 100%;
        height: 40vh;
    }

    div.login {
        width: 100%;
        height: 60vh;
    }
}

/* Celulares até 480px */
@media (max-width: 480px) {
    body {
        flex-direction: column;
    }

    #logo-login {
        width: 100%;
        height: 30vh;
    }

    #logo-login #emissor-img {
        max-width: 30%;
    }

    div.login {
        width: 70%;
        height: 70vh;
        margin: 0 auto;
    }

    .form-login {
        max-width: 100%;
        gap: 0.75rem;
    }

    .form-login input,
    .form-login .submit {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* ==========================
   RECUPERAR SENHA
========================== */
#rs-wrapper {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
}

.rs-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--cor-principal);
}

.rs-message {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #555;
    min-height: 28px;
    padding: 5px;
}

.rs-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.rs-label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--cor-texto);
}

#label-center {
    align-self: center;
}

.rs-input {
    width: 100%;
    max-width: 500px;
    padding: 14px 18px;
    border: 1px solid var(--cor-borda);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    background: #fff;
    outline: none;
}

.rs-input:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 8px rgba(25, 125, 250, 0.3);
}

.rs-btn {
    background: var(--cor-principal);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.rs-btn:hover {
    background: var(--cor-hover);
    transform: translateY(-2px);
}

/* Inputs de código */
.rs-code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}

.rs-code-box {
    flex: 1;
    min-width: 35px;
    min-height: 55px;
    border: 1.5px solid var(--cor-principal);
    border-radius: 10px;
    aspect-ratio: 1 / 1.1;
    font-size: clamp(1rem, 4vw, 1.8rem);
    text-align: center;
    background: #f9fbff;
}

.rs-code-box:focus {
    border-color: var(--cor-hover);
    box-shadow: 0 0 8px rgba(25, 125, 250, 0.4);
    outline: none;
}

/* Responsividade recuperar senha */
@media (max-width: 600px) {
    #rs-wrapper {
        width: 100%;
    }

    .rs-main-title {
        font-size: 2rem;
    }

    .rs-message {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .rs-input {
        font-size: 1rem;
        padding: 12px;
    }

    .rs-code-box {
        width: 45px;
        height: 50px;
        font-size: 1.5rem;
    }

    .rs-btn {
        width: 80%;
        font-size: 1rem;
        padding: 12px;
    }
}

/* Ajustes específicos para página de criar conta */

#form-title {
    margin-bottom: 20px;
    color: var(--cor-principal);
}

.form-login {
    max-width: 300px;
}

.span a {
    font-size: 0.9rem;
    text-decoration: none;
}

/* Ajuste pequeno para o segundo campo de senha */
.senha-span {
    width: 80%;
}

