﻿body {
            background: url('fundo.png') center/cover no-repeat fixed;
            background-color: #0d0d0d;
            margin: 0;
            font-family: "Segoe UI", Roboto, sans-serif;
            color: #e6e6e6;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.55);
            pointer-events: none;
            z-index: -1;
        }

        /* Container do login */
        .login-wrapper {
            width: 100%;
            max-width: 420px;              /* ligeiramente maior no desktop */
            margin: 80px auto;
            background: #1a1a1a;
            padding: 30px;
            border-radius: 14px;
            border: 1px solid #2b2b2b;
            box-shadow: 0 8px 25px rgba(0,0,0,0.35);
        }

        .login-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        /* Logotipo */
        .login-logo img {
            width: 140px;
            height: auto;
        }

        /* Texto Lugar Anual */
        .login-titulo {
            text-align: center;
            font-size: 32px;
            font-weight: 700;
            line-height: 1.1;
            color: #ffffff;
            font-family: "Hind", "Segoe UI", sans-serif;
            letter-spacing: 1px;
        }

        /* Inputs */
        .form-control {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #444;
            background: #2a2a2a;
            color: #fff;
            margin-bottom: 18px;
            font-size: 15px;
            box-sizing: border-box;
        }

        .form-control:focus {
            background: #333;
            border-color: #777;
            outline: none;
        }

        /* Botão Entrar */
        .btn-login {
            width: 100%;
            background: linear-gradient(135deg, #0a2342, #0d3b66);
            border: none;
            padding: 12px;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s ease;
        }

        .btn-login:hover {
            background: linear-gradient(135deg, #0d3b66, #0a2342);
        }

        /* Link recuperar */
        .login-links {
            margin-top: 15px;
            text-align: center;
        }

        .login-links a {
            color: #4da3ff;
            font-weight: 600;
            text-decoration: none;
        }

        .login-links a:hover {
            text-decoration: underline;
        }

        .login-erro {
            background: #b80000;
            color: #fff;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            text-align: center;
            font-weight: 600;
            display: block;
        }

        /* ============================
   📱 TELEMÓVEL (ocupa quase tudo)
   ============================ */
@media (max-width: 650px) {
    .login-wrapper {
        width: 90%;
        max-width: 90%;
        margin: 0 auto;      
        border-radius: 0;
        height: 90vh;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-logo img {
        width: 120px;
    }

    .login-titulo {
        font-size: 26px;  
        text-align: center;
    }
}

/* ============================
   📱 TABLET (janela maior)
   ============================ */
@media (min-width: 481px) and (max-width: 900px) {
    .login-wrapper {
        max-width: 600px;         
        margin-top: 60px;
        padding: 45px;
        border-radius: 18px;
    }

    .login-logo img {
        width: 160px;             
    }

    .login-titulo {
        font-size: 38px;  
        text-align: center;
    }
}