* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ================= LOGIN WRAPPER ================= */
.login-container {
    width: 100%;
    max-width: 420px;

    padding: 40px 30px;

    border-radius: 18px;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);

    box-shadow: 0 25px 60px rgba(0,0,0,0.10);

    text-align: center;

    animation: fadeIn 0.4s ease;
}

/* animação leve */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= LOGO ================= */
.container-logo {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;
    margin-bottom: 25px;
}

.logo {
    width: 110px;
    height: auto;
    border-radius: 50%;
}

.login-container h2 {
    font-size: 1.4rem;
    color: rgb(255,165,0);
}

/* ================= FORM ================= */
.form-group {
    margin-bottom: 14px;
    display: flex;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;

    border-radius: 10px;
    border: 1px solid #ddd;

    outline: none;

    font-size: 14px;

    transition: 0.25s;
}

.form-group input:focus {
    border-color: rgb(255,165,0);
    box-shadow: 0 0 0 3px rgba(255,165,0,0.15);
}

/* ================= MESSAGE ================= */
.message {
    margin-bottom: 10px;
    min-height: 18px;
}

.message p {
    font-size: 0.85rem;
    color: #e74c3c;
}

/* ================= BUTTON ================= */
.btn {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, rgb(255,165,0), #e69500);
    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;

    margin-bottom: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ================= EXTRA ================= */
.extra-link {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
    color: #555;
}

.extra-link a {
    color: rgb(255,165,0);
    text-decoration: none;
}

/* ================= FOOTER ================= */
footer {
    width: 100%;
    margin-top: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;
}

.div-btn {
    width: 150px;
}

.register {
    display: block;
    background: #e69500;
    color: #fff;

    padding: 10px;
    border-radius: 50px;

    text-align: center;
    font-size: 0.85rem;

    transition: 0.3s;
}

.register:hover {
    opacity: 0.8;
}

.links-policy {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

footer a.policy {
    font-size: 0.8rem;
    color: #333;
    padding: 6px 10px;
    border-radius: 20px;
    transition: 0.2s;
}

footer a.policy:hover {
    background: #fff;
    text-decoration: underline;
}

/* ================= TABLET ================= */
@media (min-width: 768px) {
    .login-container {
        max-width: 480px;
        padding: 45px;
    }

    .logo {
        width: 120px;
    }

    .login-container h2 {
        font-size: 1.6rem;
    }
}
/**/
@media (min-width: 750px) and (max-width: 980px) {

    body {
        padding: 20px;
    }

    .login-container {
        max-width: 520px;
        width: 90%;
        height: 600px !important;

        padding: 45px 35px;

        border-radius: 18px;

        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    }

    .container-logo {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .logo {
        width: 115px;
    }

    /* inputs mais confortáveis */
    .form-group input {
        padding: 13px 14px;
        font-size: 15px;
    }

    /* botão mais forte visualmente */
    .btn {
        padding: 13px;
        font-size: 15px;
    }

    /* FOOTER CORRETO (principal problema) */
    footer {
        position: relative;
        bottom: auto;

        margin-top: 35px;
        padding-bottom: 20px;
    }

    .links-policy {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    /* evita esmagamento visual */
    .div-btn {
        width: 160px;
    }
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
    body {
        background: radial-gradient(circle at top, #fff, #f3f3f3);
    }

    .login-container {
        max-width: 520px;
        padding: 50px;
        border-radius: 20px;
    }

    .btn {
        font-size: 15px;
    }
}

/* ================= WIDE SCREENS ================= */
@media (min-width: 1440px) {
    .login-container {
        max-width: 580px;
        transform: scale(1.02);
    }
}
/* OVERLAY PRINCIPAL */
.trusted-device-overlay{

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    z-index: 999999;
}

/* DIV RESPONSÁVEL PELO BLUR */
.trusted-device-backdrop{

    width: 100%;
    height: 100%;

    display: flex;

    align-items: flex-start;
    justify-content: flex-end;

    padding: 25px;

    background: rgba(0,0,0,0.30);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* MODAL */
.trusted-device-modal{

    width: 100%;
    max-width: 420px;

    background: rgba(255,255,255,0.96);

    border-radius: 18px;

    padding: 24px;

    box-shadow: 0 25px 60px rgba(0,0,0,0.15);

    border: 1px solid rgba(255,165,0,0.12);

    animation: trustedFade .25s ease;
}

/* HEADER */
.trusted-device-header{

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.trusted-icon{

    width: 45px;
    height: 45px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,165,0,0.12);

    font-size: 20px;
}

.trusted-device-header h3{

    font-size: 1.15rem;

    color: rgb(255,165,0);

    font-weight: bold;
}

/* TEXTO */
.trusted-text{

    color: #333;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 18px;
}

/* ALERTA */
.trusted-warning{

    background: rgba(255,165,0,0.08);

    border-left: 4px solid rgb(255,165,0);

    padding: 14px;

    border-radius: 12px;

    margin-bottom: 18px;

    color: #444;

    font-size: 13px;

    line-height: 1.6;
}

.trusted-warning ul{

    margin-top: 10px;
    padding-left: 18px;
}

/* CHECK */
.trusted-check{

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    cursor: pointer;

    color: #222;

    font-size: 14px;

    font-weight: 500;
}

.trusted-check input{

    width: 18px;
    height: 18px;

    accent-color: rgb(255,165,0);

    cursor: pointer;
}

/* BOTÕES */
.trusted-actions{

    display: flex;

    gap: 10px;
}

.trusted-btn{

    flex: 1;

    border: none;

    border-radius: 12px;

    padding: 12px;

    cursor: pointer;

    font-weight: 600;

    transition: .25s;
}

.trusted-btn:hover{

    transform: translateY(-1px);
}

.cancel-btn{

    background: #f1f1f1;

    color: #333;
}

.confirm-btn{

    background: linear-gradient(
        135deg,
        rgb(255,165,0),
        #e69500
    );

    color: white;
}

.confirm-btn:disabled{

    opacity: 0.5;

    cursor: not-allowed;

    transform: none;
}

/* ANIMAÇÃO */
@keyframes trustedFade{

    from{
        opacity: 0;
        transform: translateY(-10px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media(max-width: 600px){

    .trusted-device-backdrop{

        justify-content: center;

        padding: 18px;
    }

    .trusted-device-modal{

        max-width: 100%;
    }
}