:root {
            --primary: #1a7a4a;
            --primary-dark: #145e38;
            --primary-light: #22aa66;
            --accent: #2ecc80;
            --bg-dark: #0d1f17;
            --bg-card: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.12);
            --text-light: rgba(255, 255, 255, 0.85);
            --text-muted: rgba(255, 255, 255, 0.45);
        }

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

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-dark);
            overflow: hidden;
        }

        /* ── Fundo animado ── */
        .bg-scene {
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, #0b1a12 0%, #0d2b1c 40%, #0a1f15 100%);
            z-index: 0;
        }

        .bg-scene::before {
            content: '';
            position: absolute;
            width: 700px;
            height: 700px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(26, 122, 74, 0.35) 0%, transparent 70%);
            top: -200px;
            left: -200px;
            animation: pulse 8s ease-in-out infinite alternate;
        }

        .bg-scene::after {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(46, 204, 128, 0.2) 0%, transparent 70%);
            bottom: -150px;
            right: -150px;
            animation: pulse 10s ease-in-out infinite alternate-reverse;
        }

        @keyframes pulse {
            from {
                transform: scale(1);
                opacity: 0.7;
            }

            to {
                transform: scale(1.15);
                opacity: 1;
            }
        }

        /* grade decorativa */
        .grid-overlay {
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(46, 204, 128, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(46, 204, 128, 0.04) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: 0;
        }

        /* ── Card principal ── */
        .login-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 440px;
            padding: 1rem;
        }

        .login-card {
            background: rgba(15, 35, 25, 0.75);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2.75rem 2.5rem;
            box-shadow:
                0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(46, 204, 128, 0.08) inset;
            animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Logo / Título ── */
        .login-logo {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: #fff;
            margin: 0 auto 1.25rem;
            box-shadow: 0 8px 20px rgba(46, 204, 128, 0.35);
        }

        .login-title {
            text-align: center;
            color: #fff;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.35rem;
            letter-spacing: -0.3px;
        }

        .login-subtitle {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.875rem;
            margin-bottom: 2rem;
        }

        /* ── Campos ── */
        .form-label {
            color: var(--text-light);
            font-size: 0.82rem;
            font-weight: 500;
            margin-bottom: 0.4rem;
            letter-spacing: 0.3px;
        }

        .input-group-text {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--glass-border);
            border-right: none;
            color: var(--text-muted);
        }

        .form-control {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--glass-border);
            border-left: none;
            color: #fff;
            font-size: 0.9rem;
            padding: 0.6rem 0.9rem;
            transition: border-color 0.2s, background 0.2s;
        }

        .form-control::placeholder {
            color: var(--text-muted);
        }

        .form-control:focus {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--accent);
            box-shadow: none;
            color: #fff;
        }

        .input-group:focus-within .input-group-text {
            border-color: var(--accent);
        }

        /* Erros */
        .errorlist {
            list-style: none;
            padding: 0;
            margin: 0.3rem 0 0;
        }

        .errorlist li {
            color: #ff7b7b;
            font-size: 0.8rem;
        }

        /* Alerta de credenciais inválidas */
        .alert-login-error {
            background: rgba(220, 53, 69, 0.15);
            border: 1px solid rgba(220, 53, 69, 0.35);
            color: #ff8a8a;
            border-radius: 10px;
            font-size: 0.85rem;
            padding: 0.7rem 1rem;
            margin-bottom: 1.25rem;
        }

        /* ── Botão ── */
        .btn-login {
            width: 100%;
            padding: 0.7rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.2px;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
            margin-top: 0.5rem;
            box-shadow: 0 6px 20px rgba(26, 122, 74, 0.4);
        }

        .btn-login:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
            box-shadow: 0 10px 28px rgba(26, 122, 74, 0.55);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        /* ── Link esqueci senha ── */
        .forgot-link {
            display: block;
            text-align: center;
            margin-top: 1.25rem;
            color: var(--text-muted);
            font-size: 0.84rem;
            text-decoration: none;
            transition: color 0.2s;
        }

        .forgot-link:hover {
            color: var(--accent);
        }

        .forgot-link i {
            margin-right: 4px;
        }

        /* ── Divisor ── */
        .divider {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 1.5rem 0;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--glass-border);
        }

        .divider span {
            color: var(--text-muted);
            font-size: 0.75rem;
        }

        /* ── Rodapé ── */
        .login-footer {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.75rem;
            margin-top: 1.5rem;
        }
